Skip to content

Commit 1f91784

Browse files
Javier Contreras TenorioChromium LUCI CQ
authored andcommitted
[gap-decorations] Rename *-{start/end}-inset to *-inset-{start/end}
This CL renames the aforementioned properties based on feedback given in w3c/csswg-drafts#12603 (comment) This is just a rename CL, there are no behavior changes. Bug: 357648037 Change-Id: Idf63e657ffa3a94ebe83be6799d1887cd6e26379 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/7265568 Reviewed-by: Kevin Babbitt <kbabbitt@microsoft.com> Reviewed-by: Alison Maher <almaher@microsoft.com> Commit-Queue: Javier Contreras <javiercon@microsoft.com> Cr-Commit-Position: refs/heads/main@{#1559509}
1 parent e342c4c commit 1f91784

40 files changed

Lines changed: 477 additions & 477 deletions

File tree

‎third_party/blink/public/mojom/use_counter/metrics/css_property_id.mojom‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -954,14 +954,14 @@ enum CSSSampleId {
954954
kRuleInset = 888,
955955
kColumnRuleVisibilityItems = 889,
956956
kRowRuleVisibilityItems = 890,
957-
kColumnRuleEdgeStartInset = 891,
958-
kColumnRuleEdgeEndInset = 892,
959-
kColumnRuleInteriorStartInset = 893,
960-
kColumnRuleInteriorEndInset = 894,
961-
kRowRuleEdgeStartInset = 895,
962-
kRowRuleEdgeEndInset = 896,
963-
kRowRuleInteriorStartInset = 897,
964-
kRowRuleInteriorEndInset = 898,
957+
kColumnRuleEdgeInsetStart = 891,
958+
kColumnRuleEdgeInsetEnd = 892,
959+
kColumnRuleInteriorInsetStart = 893,
960+
kColumnRuleInteriorInsetEnd = 894,
961+
kRowRuleEdgeInsetStart = 895,
962+
kRowRuleEdgeInsetEnd = 896,
963+
kRowRuleInteriorInsetStart = 897,
964+
kRowRuleInteriorInsetEnd = 898,
965965
kTimelineTriggerRange = 899,
966966
kTimelineTriggerExitRange = 900,
967967
kTriggerScope = 901,

‎third_party/blink/renderer/core/animation/interpolation_types_map.cc‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ const InterpolationTypes* InterpolationTypesMap::Get(
135135
case CSSPropertyID::kBorderRightWidth:
136136
case CSSPropertyID::kBorderTopWidth:
137137
case CSSPropertyID::kBottom:
138-
case CSSPropertyID::kColumnRuleEdgeEndInset:
139-
case CSSPropertyID::kRowRuleEdgeEndInset:
140-
case CSSPropertyID::kColumnRuleEdgeStartInset:
141-
case CSSPropertyID::kRowRuleEdgeStartInset:
142-
case CSSPropertyID::kColumnRuleInteriorEndInset:
143-
case CSSPropertyID::kRowRuleInteriorEndInset:
144-
case CSSPropertyID::kColumnRuleInteriorStartInset:
145-
case CSSPropertyID::kRowRuleInteriorStartInset:
138+
case CSSPropertyID::kColumnRuleEdgeInsetEnd:
139+
case CSSPropertyID::kRowRuleEdgeInsetEnd:
140+
case CSSPropertyID::kColumnRuleEdgeInsetStart:
141+
case CSSPropertyID::kRowRuleEdgeInsetStart:
142+
case CSSPropertyID::kColumnRuleInteriorInsetEnd:
143+
case CSSPropertyID::kRowRuleInteriorInsetEnd:
144+
case CSSPropertyID::kColumnRuleInteriorInsetStart:
145+
case CSSPropertyID::kRowRuleInteriorInsetStart:
146146
case CSSPropertyID::kCx:
147147
case CSSPropertyID::kCy:
148148
case CSSPropertyID::kFlexBasis:

‎third_party/blink/renderer/core/animation/length_property_functions.cc‎

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -378,36 +378,36 @@ bool LengthPropertyFunctions::GetLength(const CSSProperty& property,
378378
success = true;
379379
}
380380
break;
381-
case CSSPropertyID::kColumnRuleEdgeEndInset:
382-
result = style.ColumnRuleEdgeEndInset();
381+
case CSSPropertyID::kColumnRuleEdgeInsetEnd:
382+
result = style.ColumnRuleEdgeInsetEnd();
383383
success = true;
384384
break;
385-
case CSSPropertyID::kRowRuleEdgeEndInset:
386-
result = style.RowRuleEdgeEndInset();
385+
case CSSPropertyID::kRowRuleEdgeInsetEnd:
386+
result = style.RowRuleEdgeInsetEnd();
387387
success = true;
388388
break;
389-
case CSSPropertyID::kColumnRuleEdgeStartInset:
390-
result = style.ColumnRuleEdgeStartInset();
389+
case CSSPropertyID::kColumnRuleEdgeInsetStart:
390+
result = style.ColumnRuleEdgeInsetStart();
391391
success = true;
392392
break;
393-
case CSSPropertyID::kRowRuleEdgeStartInset:
394-
result = style.RowRuleEdgeStartInset();
393+
case CSSPropertyID::kRowRuleEdgeInsetStart:
394+
result = style.RowRuleEdgeInsetStart();
395395
success = true;
396396
break;
397-
case CSSPropertyID::kColumnRuleInteriorEndInset:
398-
result = style.ColumnRuleInteriorEndInset();
397+
case CSSPropertyID::kColumnRuleInteriorInsetEnd:
398+
result = style.ColumnRuleInteriorInsetEnd();
399399
success = true;
400400
break;
401-
case CSSPropertyID::kRowRuleInteriorEndInset:
402-
result = style.RowRuleInteriorEndInset();
401+
case CSSPropertyID::kRowRuleInteriorInsetEnd:
402+
result = style.RowRuleInteriorInsetEnd();
403403
success = true;
404404
break;
405-
case CSSPropertyID::kColumnRuleInteriorStartInset:
406-
result = style.ColumnRuleInteriorStartInset();
405+
case CSSPropertyID::kColumnRuleInteriorInsetStart:
406+
result = style.ColumnRuleInteriorInsetStart();
407407
success = true;
408408
break;
409-
case CSSPropertyID::kRowRuleInteriorStartInset:
410-
result = style.RowRuleInteriorStartInset();
409+
case CSSPropertyID::kRowRuleInteriorInsetStart:
410+
result = style.RowRuleInteriorInsetStart();
411411
success = true;
412412
break;
413413
case CSSPropertyID::kColumnRuleWidth:

‎third_party/blink/renderer/core/css/css_gap_decoration_property_utils.cc‎

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -33,22 +33,22 @@ CSSPropertyID CSSGapDecorationUtils::GetLonghandProperty(
3333
return direction == CSSGapDecorationPropertyDirection::kRow
3434
? CSSPropertyID::kRowRuleColor
3535
: CSSPropertyID::kColumnRuleColor;
36-
case CSSGapDecorationPropertyType::kEdgeEndInset:
36+
case CSSGapDecorationPropertyType::kEdgeInsetEnd:
3737
return direction == CSSGapDecorationPropertyDirection::kRow
38-
? CSSPropertyID::kRowRuleEdgeEndInset
39-
: CSSPropertyID::kColumnRuleEdgeEndInset;
40-
case CSSGapDecorationPropertyType::kEdgeStartInset:
38+
? CSSPropertyID::kRowRuleEdgeInsetEnd
39+
: CSSPropertyID::kColumnRuleEdgeInsetEnd;
40+
case CSSGapDecorationPropertyType::kEdgeInsetStart:
4141
return direction == CSSGapDecorationPropertyDirection::kRow
42-
? CSSPropertyID::kRowRuleEdgeStartInset
43-
: CSSPropertyID::kColumnRuleEdgeStartInset;
44-
case CSSGapDecorationPropertyType::kInteriorStartInset:
42+
? CSSPropertyID::kRowRuleEdgeInsetStart
43+
: CSSPropertyID::kColumnRuleEdgeInsetStart;
44+
case CSSGapDecorationPropertyType::kInteriorInsetStart:
4545
return direction == CSSGapDecorationPropertyDirection::kRow
46-
? CSSPropertyID::kRowRuleInteriorStartInset
47-
: CSSPropertyID::kColumnRuleInteriorStartInset;
48-
case CSSGapDecorationPropertyType::kInteriorEndInset:
46+
? CSSPropertyID::kRowRuleInteriorInsetStart
47+
: CSSPropertyID::kColumnRuleInteriorInsetStart;
48+
case CSSGapDecorationPropertyType::kInteriorInsetEnd:
4949
return direction == CSSGapDecorationPropertyDirection::kRow
50-
? CSSPropertyID::kRowRuleInteriorEndInset
51-
: CSSPropertyID::kColumnRuleInteriorEndInset;
50+
? CSSPropertyID::kRowRuleInteriorInsetEnd
51+
: CSSPropertyID::kColumnRuleInteriorInsetEnd;
5252
}
5353
}
5454

‎third_party/blink/renderer/core/css/css_gap_decoration_property_utils.h‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ enum class CSSGapDecorationPropertyType : int {
2424
kColor,
2525
kWidth,
2626
kStyle,
27-
kEdgeEndInset,
28-
kEdgeStartInset,
29-
kInteriorStartInset,
30-
kInteriorEndInset,
27+
kEdgeInsetEnd,
28+
kEdgeInsetStart,
29+
kInteriorInsetStart,
30+
kInteriorInsetEnd,
3131
};
3232

3333
enum class CSSGapDecorationPropertyDirection : int {

‎third_party/blink/renderer/core/css/css_properties.json5‎

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -6582,7 +6582,7 @@
65826582
runtime_flag: "CSSGapDecoration",
65836583
},
65846584
{
6585-
name: "column-rule-edge-end-inset",
6585+
name: "column-rule-edge-inset-end",
65866586
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
65876587
interpolable: true,
65886588
inherited: false,
@@ -6595,7 +6595,7 @@
65956595
runtime_flag: "CSSGapDecoration",
65966596
},
65976597
{
6598-
name: "row-rule-edge-end-inset",
6598+
name: "row-rule-edge-inset-end",
65996599
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66006600
interpolable: true,
66016601
inherited: false,
@@ -6608,7 +6608,7 @@
66086608
runtime_flag: "CSSGapDecoration",
66096609
},
66106610
{
6611-
name: "column-rule-edge-start-inset",
6611+
name: "column-rule-edge-inset-start",
66126612
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66136613
interpolable: true,
66146614
inherited: false,
@@ -6621,7 +6621,7 @@
66216621
runtime_flag: "CSSGapDecoration",
66226622
},
66236623
{
6624-
name: "row-rule-edge-start-inset",
6624+
name: "row-rule-edge-inset-start",
66256625
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66266626
interpolable: true,
66276627
inherited: false,
@@ -6634,7 +6634,7 @@
66346634
runtime_flag: "CSSGapDecoration",
66356635
},
66366636
{
6637-
name: "column-rule-interior-end-inset",
6637+
name: "column-rule-interior-inset-end",
66386638
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66396639
interpolable: true,
66406640
inherited: false,
@@ -6647,7 +6647,7 @@
66476647
runtime_flag: "CSSGapDecoration",
66486648
},
66496649
{
6650-
name: "row-rule-interior-end-inset",
6650+
name: "row-rule-interior-inset-end",
66516651
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66526652
interpolable: true,
66536653
inherited: false,
@@ -6660,7 +6660,7 @@
66606660
runtime_flag: "CSSGapDecoration",
66616661
},
66626662
{
6663-
name: "column-rule-interior-start-inset",
6663+
name: "column-rule-interior-inset-start",
66646664
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66656665
interpolable: true,
66666666
inherited: false,
@@ -6673,7 +6673,7 @@
66736673
runtime_flag: "CSSGapDecoration",
66746674
},
66756675
{
6676-
name: "row-rule-interior-start-inset",
6676+
name: "row-rule-interior-inset-start",
66776677
property_methods: ["ParseSingleValue", "CSSValueFromComputedStyleInternal"],
66786678
interpolable: true,
66796679
inherited: false,
@@ -8983,23 +8983,23 @@
89838983
},
89848984
{
89858985
name: "column-rule-inset",
8986-
longhands: ["column-rule-edge-start-inset", "column-rule-edge-end-inset", "column-rule-interior-start-inset",
8987-
"column-rule-interior-end-inset"],
8986+
longhands: ["column-rule-edge-inset-start", "column-rule-edge-inset-end", "column-rule-interior-inset-start",
8987+
"column-rule-interior-inset-end"],
89888988
property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"],
89898989
runtime_flag: "CSSGapDecoration",
89908990
},
89918991
{
89928992
name: "row-rule-inset",
8993-
longhands: ["row-rule-edge-start-inset", "row-rule-edge-end-inset", "row-rule-interior-start-inset",
8994-
"row-rule-interior-end-inset"],
8993+
longhands: ["row-rule-edge-inset-start", "row-rule-edge-inset-end", "row-rule-interior-inset-start",
8994+
"row-rule-interior-inset-end"],
89958995
property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"],
89968996
runtime_flag: "CSSGapDecoration",
89978997
},
89988998
{
89998999
name: "rule-inset",
9000-
longhands: ["row-rule-edge-start-inset", "row-rule-edge-end-inset", "row-rule-interior-start-inset",
9001-
"row-rule-interior-end-inset", "column-rule-edge-start-inset", "column-rule-edge-end-inset",
9002-
"column-rule-interior-start-inset", "column-rule-interior-end-inset"],
9000+
longhands: ["row-rule-edge-inset-start", "row-rule-edge-inset-end", "row-rule-interior-inset-start",
9001+
"row-rule-interior-inset-end", "column-rule-edge-inset-start", "column-rule-edge-inset-end",
9002+
"column-rule-interior-inset-start", "column-rule-interior-inset-end"],
90039003
property_methods: ["ParseShorthand", "CSSValueFromComputedStyleInternal"],
90049004
runtime_flag: "CSSGapDecoration",
90059005
},

‎third_party/blink/renderer/core/css/css_property_equality.cc‎

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -872,23 +872,23 @@ bool CSSPropertyEquality::PropertiesEqual(const PropertyHandle& property,
872872
return a.ColumnRuleBreak() == b.ColumnRuleBreak();
873873
case CSSPropertyID::kRowRuleBreak:
874874
return a.RowRuleBreak() == b.RowRuleBreak();
875-
case CSSPropertyID::kColumnRuleEdgeEndInset:
876-
return a.ColumnRuleEdgeEndInset() == b.ColumnRuleEdgeEndInset();
877-
case CSSPropertyID::kRowRuleEdgeEndInset:
878-
return a.RowRuleEdgeEndInset() == b.RowRuleEdgeEndInset();
879-
case CSSPropertyID::kColumnRuleEdgeStartInset:
880-
return a.ColumnRuleEdgeStartInset() == b.ColumnRuleEdgeStartInset();
881-
case CSSPropertyID::kRowRuleEdgeStartInset:
882-
return a.RowRuleEdgeStartInset() == b.RowRuleEdgeStartInset();
883-
case CSSPropertyID::kColumnRuleInteriorEndInset:
884-
return a.ColumnRuleInteriorEndInset() == b.ColumnRuleInteriorEndInset();
885-
case CSSPropertyID::kRowRuleInteriorEndInset:
886-
return a.RowRuleInteriorEndInset() == b.RowRuleInteriorEndInset();
887-
case CSSPropertyID::kColumnRuleInteriorStartInset:
888-
return a.ColumnRuleInteriorStartInset() ==
889-
b.ColumnRuleInteriorStartInset();
890-
case CSSPropertyID::kRowRuleInteriorStartInset:
891-
return a.RowRuleInteriorStartInset() == b.RowRuleInteriorStartInset();
875+
case CSSPropertyID::kColumnRuleEdgeInsetEnd:
876+
return a.ColumnRuleEdgeInsetEnd() == b.ColumnRuleEdgeInsetEnd();
877+
case CSSPropertyID::kRowRuleEdgeInsetEnd:
878+
return a.RowRuleEdgeInsetEnd() == b.RowRuleEdgeInsetEnd();
879+
case CSSPropertyID::kColumnRuleEdgeInsetStart:
880+
return a.ColumnRuleEdgeInsetStart() == b.ColumnRuleEdgeInsetStart();
881+
case CSSPropertyID::kRowRuleEdgeInsetStart:
882+
return a.RowRuleEdgeInsetStart() == b.RowRuleEdgeInsetStart();
883+
case CSSPropertyID::kColumnRuleInteriorInsetEnd:
884+
return a.ColumnRuleInteriorInsetEnd() == b.ColumnRuleInteriorInsetEnd();
885+
case CSSPropertyID::kRowRuleInteriorInsetEnd:
886+
return a.RowRuleInteriorInsetEnd() == b.RowRuleInteriorInsetEnd();
887+
case CSSPropertyID::kColumnRuleInteriorInsetStart:
888+
return a.ColumnRuleInteriorInsetStart() ==
889+
b.ColumnRuleInteriorInsetStart();
890+
case CSSPropertyID::kRowRuleInteriorInsetStart:
891+
return a.RowRuleInteriorInsetStart() == b.RowRuleInteriorInsetStart();
892892
case CSSPropertyID::kColumnRuleColor:
893893
return a.ColumnRuleColor() == b.ColumnRuleColor() &&
894894
a.InternalVisitedColumnRuleColor() ==

‎third_party/blink/renderer/core/css/properties/computed_style_utils.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4054,16 +4054,16 @@ CSSValueList* ComputedStyleUtils::ValuesForGapDecorationRuleInsetShorthand(
40544054
CHECK_EQ(shorthand.length(), 4u);
40554055
CHECK(shorthand.properties()[0]->IDEquals(
40564056
CSSGapDecorationUtils::GetLonghandProperty(
4057-
direction, CSSGapDecorationPropertyType::kEdgeStartInset)));
4057+
direction, CSSGapDecorationPropertyType::kEdgeInsetStart)));
40584058
CHECK(shorthand.properties()[1]->IDEquals(
40594059
CSSGapDecorationUtils::GetLonghandProperty(
4060-
direction, CSSGapDecorationPropertyType::kEdgeEndInset)));
4060+
direction, CSSGapDecorationPropertyType::kEdgeInsetEnd)));
40614061
CHECK(shorthand.properties()[2]->IDEquals(
40624062
CSSGapDecorationUtils::GetLonghandProperty(
4063-
direction, CSSGapDecorationPropertyType::kInteriorStartInset)));
4063+
direction, CSSGapDecorationPropertyType::kInteriorInsetStart)));
40644064
CHECK(shorthand.properties()[3]->IDEquals(
40654065
CSSGapDecorationUtils::GetLonghandProperty(
4066-
direction, CSSGapDecorationPropertyType::kInteriorEndInset)));
4066+
direction, CSSGapDecorationPropertyType::kInteriorInsetEnd)));
40674067

40684068
const CSSValue* rule_edge_start_inset_value =
40694069
shorthand.properties()[0]->CSSValueFromComputedStyle(

‎third_party/blink/renderer/core/css/properties/css_parsing_utils.cc‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5515,10 +5515,10 @@ CSSValue* ConsumeGapDecorationPropertyValue(
55155515
return ConsumeIdent(stream);
55165516
}
55175517
return nullptr;
5518-
case CSSGapDecorationPropertyType::kEdgeEndInset:
5519-
case CSSGapDecorationPropertyType::kEdgeStartInset:
5520-
case CSSGapDecorationPropertyType::kInteriorEndInset:
5521-
case CSSGapDecorationPropertyType::kInteriorStartInset:
5518+
case CSSGapDecorationPropertyType::kEdgeInsetEnd:
5519+
case CSSGapDecorationPropertyType::kEdgeInsetStart:
5520+
case CSSGapDecorationPropertyType::kInteriorInsetEnd:
5521+
case CSSGapDecorationPropertyType::kInteriorInsetStart:
55225522
return nullptr;
55235523
}
55245524
}

0 commit comments

Comments
 (0)
Sponsor
SponsoredKunjungi sekarang
Promo