Index: third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 |
diff --git a/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 b/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 |
index 657b33ec5bcaa4b9a225a4c41a886dcde3c94528..dc44f65aa395c0f26b4a1ec14532c80d3854ae9a 100644 |
--- a/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 |
+++ b/third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5 |
@@ -8,6 +8,12 @@ |
// The fields that need to be diffed. |
fields: { |
}, |
+ |
+ // A map of expressions to diff (these can be public getters of fields or |
+ // functions that use fields to determine a value). |
shend
2017/05/12 06:59:17
Maybe explain what the keys and what the correspon
nainar
2017/05/12 07:07:47
Done.
|
+ map_of_expressions: { |
+ default: {}, |
+ }, |
}, |
data: [ |
{ |
@@ -19,7 +25,11 @@ |
{ |
name: "DiffNeedsFullLayoutAndPaintInvalidation", |
fields: ["padding-top", "padding-left", "padding-right", |
- "padding-bottom"] |
+ "padding-bottom"], |
+ map_of_expressions: {"BorderLeftWidth()": "border-left-width", |
+ "BorderTopWidth()": "border-top-width", |
+ "BorderBottomWidth()": "border-bottom-width", |
+ "BorderRightWidth()": "border-right-width"} |
} |
], |
} |