OLD | NEW |
1 { | 1 { |
2 // This file specifies the fields we want to diff in the various diff function
s | 2 // This file specifies the fields we want to diff in the various diff function
s |
3 // in ComputedStyle. | 3 // in ComputedStyle. |
4 | 4 |
5 parameters: { | 5 parameters: { |
6 // The name parameter represents the name of the function to be created. | 6 // The name parameter represents the name of the function to be created. |
7 | 7 |
8 fields_to_diff: { | 8 fields_to_diff: { |
9 default: [], | 9 default: [], |
10 }, | 10 }, |
(...skipping 27 matching lines...) Expand all Loading... |
38 methods_to_diff: [ | 38 methods_to_diff: [ |
39 { | 39 { |
40 method: "GetPosition()", | 40 method: "GetPosition()", |
41 field_dependencies: ["position"] | 41 field_dependencies: ["position"] |
42 }, | 42 }, |
43 ] | 43 ] |
44 }, | 44 }, |
45 { | 45 { |
46 name: "DiffNeedsFullLayoutAndPaintInvalidation", | 46 name: "DiffNeedsFullLayoutAndPaintInvalidation", |
47 fields_to_diff: ["padding-top", "padding-left", "padding-right", | 47 fields_to_diff: ["padding-top", "padding-left", "padding-right", |
48 "padding-bottom", "-webkit-highlight", "text-indent", | 48 "padding-bottom", "-webkit-appearance", |
49 "text-align-last", "TextIndentLine", "EffectiveZoom", | 49 "-webkit-margin-before-collapse", |
| 50 "-webkit-margin-after-collapse", "-webkit-line-clamp", |
| 51 "text-overflow", "shape-margin", "order", "-webkit-highlight", |
| 52 "text-indent", "text-align-last", "TextIndentLine", "EffectiveZo
om", |
50 "word-break", "overflow-wrap", "-webkit-line-break", | 53 "word-break", "overflow-wrap", "-webkit-line-break", |
51 "-webkit-text-security", "hyphens", "HyphenationLimitBefore", | 54 "-webkit-text-security", "hyphens", "HyphenationLimitBefore", |
52 "HyphenationLimitAfter", "-webkit-hyphenate-character", | 55 "HyphenationLimitAfter", "-webkit-hyphenate-character", |
53 "RespectImageOrientation", "-webkit-ruby-position", | 56 "RespectImageOrientation", "-webkit-ruby-position", |
54 "TextEmphasisMark", "TextEmphasisPosition", | 57 "TextEmphasisMark", "TextEmphasisPosition", |
55 "TextEmphasisCustomMark", "text-justify", "text-orientation", | 58 "TextEmphasisCustomMark", "text-justify", "text-orientation", |
56 "text-combine-upright", "tab-size", "text-size-adjust", | 59 "text-combine-upright", "tab-size", "text-size-adjust", |
57 "list-style-image", "line-height-step", | 60 "list-style-image", "line-height-step", |
58 "-webkit-text-stroke-width", "line-height", "font", | 61 "-webkit-text-stroke-width", "line-height", "font", |
59 "-webkit-border-horizontal-spacing", | 62 "-webkit-border-horizontal-spacing", |
60 "-webkit-border-vertical-spacing", "TextAutosizingMultiplier"], | 63 "-webkit-border-vertical-spacing", "TextAutosizingMultiplier"], |
61 methods_to_diff: [ | 64 methods_to_diff: [ |
62 { | 65 { |
63 method: "BorderLeftWidth()", | 66 method: "BorderLeftWidth()", |
64 field_dependencies: ["border-left-width"] | 67 field_dependencies: ["border-left-width"] |
65 }, | 68 }, |
66 { | 69 { |
67 method: "BorderTopWidth()", | 70 method: "BorderTopWidth()", |
68 field_dependencies: ["border-top-width"] | 71 field_dependencies: ["border-top-width"] |
69 }, | 72 }, |
70 { | 73 { |
71 method: "BorderBottomWidth()", | 74 method: "BorderBottomWidth()", |
72 field_dependencies: ["border-bottom-width"] | 75 field_dependencies: ["border-bottom-width"] |
73 }, | 76 }, |
74 { | 77 { |
75 method: "BorderRightWidth()", | 78 method: "BorderRightWidth()", |
76 field_dependencies: ["border-right-width"] | 79 field_dependencies: ["border-right-width"] |
77 }, | 80 }, |
78 { | 81 { |
| 82 method: "HasFilters()", |
| 83 field_dependencies: ["Filter"] |
| 84 }, |
| 85 { |
79 method: "FontInternal().LoadingCustomFonts()", | 86 method: "FontInternal().LoadingCustomFonts()", |
80 field_dependencies: ["font"] | 87 field_dependencies: ["font"] |
81 }, | 88 }, |
82 { | 89 { |
83 method: "HasPseudoStyle(kPseudoIdScrollbar)", | 90 method: "HasPseudoStyle(kPseudoIdScrollbar)", |
84 field_dependencies: ["StyleType"] | 91 field_dependencies: ["StyleType"] |
85 }, | 92 }, |
86 { | 93 { |
87 method: "BoxDirection()", | 94 method: "BoxDirection()", |
88 field_dependencies: ["-webkit-box-direction"] | 95 field_dependencies: ["-webkit-box-direction"] |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
138 ], | 145 ], |
139 predicates_to_test: [ | 146 predicates_to_test: [ |
140 { | 147 { |
141 predicate: "a.TextShadowDataEquivalent(b)", | 148 predicate: "a.TextShadowDataEquivalent(b)", |
142 field_dependencies: ["text-shadow"] | 149 field_dependencies: ["text-shadow"] |
143 }, | 150 }, |
144 { | 151 { |
145 predicate: "a.QuotesDataEquivalent(b)", | 152 predicate: "a.QuotesDataEquivalent(b)", |
146 field_dependencies: ["quotes"] | 153 field_dependencies: ["quotes"] |
147 }, | 154 }, |
| 155 { |
| 156 predicate: "a.OpacityChangedStackingContext(b)", |
| 157 field_dependencies: ["IsStackingContext", "opacity"] |
| 158 }, |
148 ] | 159 ] |
149 }, | 160 }, |
150 { | 161 { |
151 name: "DiffNeedsFullLayoutAndPaintInvalidationDisplayTableType", | 162 name: "DiffNeedsFullLayoutAndPaintInvalidationDisplayTableType", |
152 methods_to_diff: [ | 163 methods_to_diff: [ |
153 { | 164 { |
154 method: "BorderCollapse()", | 165 method: "BorderCollapse()", |
155 field_dependencies: ["border-collapse"] | 166 field_dependencies: ["border-collapse"] |
156 }, | 167 }, |
157 { | 168 { |
(...skipping 18 matching lines...) Expand all Loading... |
176 field_dependencies: ["list-style-type"] | 187 field_dependencies: ["list-style-type"] |
177 }, | 188 }, |
178 { | 189 { |
179 method: "ListStylePosition()", | 190 method: "ListStylePosition()", |
180 field_dependencies: ["list-style-position"] | 191 field_dependencies: ["list-style-position"] |
181 }, | 192 }, |
182 ] | 193 ] |
183 }, | 194 }, |
184 { | 195 { |
185 name: "DiffNeedsFullLayout", | 196 name: "DiffNeedsFullLayout", |
186 fields_to_diff: ["width", "min-width", "max-width", "height", "min-heigh
t", "max-height", "box-sizing"] | 197 fields_to_diff: ["width", "min-width", "max-width", "height", "min-heigh
t", |
| 198 "max-height", "VerticalAlignLength", "box-sizing", "align-conten
t", |
| 199 "align-items", "align-self", "justify-content", "justify-items", |
| 200 "justify-self", "contain"], |
| 201 methods_to_diff: [ |
| 202 { |
| 203 method: "VerticalAlign()", |
| 204 field_dependencies: ["VerticalAlign"] |
| 205 }, |
| 206 { |
| 207 method: "GetPosition()", |
| 208 field_dependencies: ["position"] |
| 209 }, |
| 210 ] |
187 }, | 211 }, |
188 { | 212 { |
| 213 name: "DiffNeedsPaintInvalidationSubtree", |
| 214 fields_to_diff: ["EffectiveBlendMode", "isolation", "Mask", "MaskBoxImag
e"], |
| 215 }, |
| 216 |
| 217 { |
189 name: "DiffNeedsPaintInvalidationObject", | 218 name: "DiffNeedsPaintInvalidationObject", |
190 fields_to_diff: ["-webkit-user-modify", "user-select", "image-rendering"
], | 219 fields_to_diff: ["-webkit-user-modify", "user-select", "image-rendering"
, |
| 220 "-webkit-user-drag", "object-fit", "object-position"], |
191 methods_to_diff: [ | 221 methods_to_diff: [ |
192 { | 222 { |
193 method: "Visibility()", | 223 method: "Visibility()", |
194 field_dependencies: ["visibility"] | 224 field_dependencies: ["visibility"] |
195 }, | 225 }, |
196 { | 226 { |
197 method: "PrintColorAdjust()", | 227 method: "PrintColorAdjust()", |
198 field_dependencies: ["-webkit-print-color-adjust"] | 228 field_dependencies: ["-webkit-print-color-adjust"] |
199 }, | 229 }, |
200 { | 230 { |
201 method: "InsideLink()", | 231 method: "InsideLink()", |
202 field_dependencies: ["InsideLink"] | 232 field_dependencies: ["InsideLink"] |
203 } | 233 }, |
| 234 { |
| 235 method: "VisitedLinkBackgroundColor()", |
| 236 field_dependencies: ["VisitedLinkBackgroundColor"] |
| 237 }, |
| 238 { |
| 239 method: "Resize()", |
| 240 field_dependencies: ["resize"] |
| 241 }, |
| 242 ], |
| 243 predicates_to_test: [ |
| 244 { |
| 245 predicate: "a.BoxShadowDataEquivalent(b)", |
| 246 field_dependencies: ["box-shadow"] |
| 247 }, |
| 248 { |
| 249 predicate: "a.ShapeOutsideDataEquivalent(b)", |
| 250 field_dependencies: ["shape-outside"] |
| 251 }, |
| 252 { |
| 253 predicate: "a.ClipPathDataEquivalent(b)", |
| 254 field_dependencies: ["clip-path"] |
| 255 }, |
| 256 { |
| 257 predicate: "a.OutlineVisuallyEqual(b)", |
| 258 field_dependencies: ["Outline"] |
| 259 }, |
| 260 { |
| 261 predicate: "a.VisitedLinkBorderLeftColorHasNotChanged(b)", |
| 262 field_dependencies: ["VisitedLinkBorderLeftColor"] |
| 263 }, |
| 264 { |
| 265 predicate: "a.VisitedLinkBorderRightColorHasNotChanged(b)", |
| 266 field_dependencies: ["VisitedLinkBorderRightColor"] |
| 267 }, |
| 268 { |
| 269 predicate: "a.VisitedLinkBorderBottomColorHasNotChanged(b)", |
| 270 field_dependencies: ["VisitedLinkBorderBottomColor"] |
| 271 }, |
| 272 { |
| 273 predicate: "a.VisitedLinkBorderTopColorHasNotChanged(b)", |
| 274 field_dependencies: ["VisitedLinkBorderTopColor"] |
| 275 }, |
| 276 { |
| 277 predicate: "a.VisitedLinkOutlineColorHasNotChanged(b)", |
| 278 field_dependencies: ["VisitedLinkOutlineColor"] |
| 279 }, |
204 ] | 280 ] |
205 }, | 281 }, |
206 { | 282 { |
207 name: "DiffNeedsVisualRectUpdate", | 283 name: "DiffNeedsVisualRectUpdate", |
208 methods_to_diff: [ | 284 methods_to_diff: [ |
209 { | 285 { |
210 method: "Visibility()", | 286 method: "Visibility()", |
211 field_dependencies: ["visibility"] | 287 field_dependencies: ["visibility"] |
212 } | 288 }, |
| 289 { |
| 290 method: "Resize()", |
| 291 field_dependencies: ["resize"] |
| 292 }, |
213 ] | 293 ] |
214 }, | 294 }, |
215 { | 295 { |
| 296 name: "UpdatePropertySpecificDifferencesZIndex", |
| 297 fields_to_diff: ["z-index"], |
| 298 methods_to_diff: [ |
| 299 { |
| 300 method: "IsStackingContext()", |
| 301 field_dependencies: ["IsStackingContext"] |
| 302 }, |
| 303 ] |
| 304 }, |
| 305 { |
| 306 name: "UpdatePropertySpecificDifferencesOpacity", |
| 307 fields_to_diff: ["opacity"], |
| 308 }, |
| 309 { |
| 310 name: "UpdatePropertySpecificDifferencesFilter", |
| 311 fields_to_diff: ["Filter"], |
| 312 predicates_to_test: [ |
| 313 { |
| 314 predicate: "a.ReflectionDataEquivalent(b)", |
| 315 field_dependencies: ["-webkit-box-reflect"] |
| 316 }, |
| 317 ] |
| 318 }, |
| 319 { |
| 320 name: "UpdatePropertySpecificDifferencesNeedsRecomputeOverflow", |
| 321 predicates_to_test: [ |
| 322 { |
| 323 predicate: "a.BoxShadowDataEquivalent(b)", |
| 324 field_dependencies: ["box-shadow"] |
| 325 }, |
| 326 { |
| 327 predicate: "a.OutlineVisuallyEqual(b)", |
| 328 field_dependencies: ["Outline"] |
| 329 }, |
| 330 { |
| 331 predicate: "a.BorderVisualOverflowEqual(b)", |
| 332 field_dependencies: ["border-image"] |
| 333 }, |
| 334 ] |
| 335 }, |
| 336 { |
| 337 name: "UpdatePropertySpecificDifferencesBackdropFilter", |
| 338 fields_to_diff: ["BackdropFilter"], |
| 339 }, |
| 340 { |
216 name: "UpdatePropertySpecificDifferencesTextDecorationOrColor", | 341 name: "UpdatePropertySpecificDifferencesTextDecorationOrColor", |
217 fields_to_diff: ["TextEmphasisFill", "text-underline-position", "text-de
coration-skip", "AppliedTextDecorations"], | 342 fields_to_diff: ["text-decoration-style", "text-decoration-color", |
| 343 "VisitedLinkTextDecorationColor", "TextEmphasisFill", |
| 344 "text-underline-position", "text-decoration-skip", "AppliedTextDecoratio
ns"], |
218 methods_to_diff: [ | 345 methods_to_diff: [ |
219 { | 346 { |
220 method: "TextFillColor()", | 347 method: "TextFillColor()", |
221 field_dependencies: ["-webkit-text-fill-color"] | 348 field_dependencies: ["-webkit-text-fill-color"] |
222 }, | 349 }, |
223 { | 350 { |
224 method: "TextStrokeColor()", | 351 method: "TextStrokeColor()", |
225 field_dependencies: ["-webkit-text-stroke-color"] | 352 field_dependencies: ["-webkit-text-stroke-color"] |
226 }, | 353 }, |
227 { | 354 { |
(...skipping 17 matching lines...) Expand all Loading... |
245 field_dependencies: ["caret-color"] | 372 field_dependencies: ["caret-color"] |
246 }, | 373 }, |
247 { | 374 { |
248 method: "VisitedLinkCaretColor()", | 375 method: "VisitedLinkCaretColor()", |
249 field_dependencies: ["VisitedLinkCaretColor"] | 376 field_dependencies: ["VisitedLinkCaretColor"] |
250 }, | 377 }, |
251 ] | 378 ] |
252 }, | 379 }, |
253 ], | 380 ], |
254 } | 381 } |
OLD | NEW |