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: { |
alancutter (OOO until 2018)
2017/05/16 00:43:56
Rename as fields_to_diff to match code and avoid c
nainar
2017/05/16 01:24:44
Done.
|
}, |
+ |
+ // A map of expressions to diff (these can be public getters of fields or |
+ // functions that use fields to determine a value). |
+ map_of_expressions: { |
alancutter (OOO until 2018)
2017/05/16 00:43:56
methods_to_diff: [
{
name: "BorderLeftWidth"
nainar
2017/05/16 01:24:44
Done as the following:
methods_to_diff: [
{
|
+ 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"} |
} |
], |
} |