Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(936)

Unified Diff: third_party/WebKit/Source/core/css/ComputedStyleDiffFunctions.json5

Issue 2876803003: Generate diffs for fields in ComputedStyle that use their public getters (Closed)
Patch Set: Created 3 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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"}
}
],
}

Powered by Google App Engine
This is Rietveld 408576698