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 // The fields that need to be diffed. | 8 fields_to_diff: { |
9 fields: { | 9 }, |
| 10 |
| 11 // A list of methods to diff (these can be public getters of fields or |
| 12 // functions that use fields to determine a value). |
| 13 // Each entry is expressed as a dict of two fields. |
| 14 // The fields are method - the method to be diffed and field_dependencies |
| 15 // which lists the properties this method depends on. |
| 16 methods_to_diff: { |
| 17 default: [], |
10 }, | 18 }, |
11 }, | 19 }, |
12 data: [ | 20 data: [ |
13 { | 21 { |
14 name: "ScrollAnchorDisablingPropertyChanged", | 22 name: "ScrollAnchorDisablingPropertyChanged", |
15 fields: ["width", "min-width", "max-width", "height", "min-height", "max
-height", "margin-top", "margin-left", "margin-right", "margin-bottom", | 23 fields_to_diff: ["width", "min-width", "max-width", "height", "min-heigh
t", "max-height", "margin-top", "margin-left", "margin-right", "margin-bottom", |
16 "left", "right", "top", "bottom", "padding-top", | 24 "left", "right", "top", "bottom", "padding-top", |
17 "padding-left", "padding-right", "padding-bottom"] | 25 "padding-left", "padding-right", "padding-bottom"] |
18 }, | 26 }, |
19 { | 27 { |
20 name: "DiffNeedsFullLayoutAndPaintInvalidation", | 28 name: "DiffNeedsFullLayoutAndPaintInvalidation", |
21 fields: ["padding-top", "padding-left", "padding-right", | 29 fields_to_diff: ["padding-top", "padding-left", "padding-right", |
22 "padding-bottom"] | 30 "padding-bottom"], |
| 31 methods_to_diff: [ |
| 32 { |
| 33 method: "BorderLeftWidth()", |
| 34 field_dependencies: ["border-left-width"] |
| 35 }, |
| 36 { |
| 37 method: "BorderTopWidth()", |
| 38 field_dependencies: ["border-top-width"] |
| 39 }, |
| 40 { |
| 41 method: "BorderBottomWidth()", |
| 42 field_dependencies: ["border-bottom-width"] |
| 43 }, |
| 44 { |
| 45 method: "BorderRightWidth()", |
| 46 field_dependencies: ["border-right-width"] |
| 47 } |
| 48 ] |
23 }, | 49 }, |
24 { | 50 { |
25 name: "DiffNeedsFullLayout", | 51 name: "DiffNeedsFullLayout", |
26 fields: ["width", "min-width", "max-width", "height", "min-height", "max
-height", "box-sizing"] | 52 fields_to_diff: ["width", "min-width", "max-width", "height", "min-heigh
t", "max-height", "box-sizing"] |
27 } | 53 } |
28 ], | 54 ], |
29 } | 55 } |
OLD | NEW |