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

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

Issue 2786883002: Generate subgroup StyleSurroundData in ComputedStyle. (Closed)
Patch Set: Fix things Created 3 years, 8 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/CSSProperties.json5
diff --git a/third_party/WebKit/Source/core/css/CSSProperties.json5 b/third_party/WebKit/Source/core/css/CSSProperties.json5
index eccec5441e4e39a870d8440f0bff60e9bd0e457b..60ad59fcf3c419d7175e3101b2243b56f6a2f708 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
@@ -61,6 +61,14 @@
valid_values: ["parseSingleValue", "parseShorthand"],
},
+ // - field_group
+ // Name of the group that this field belongs to. Fields in the same group are stored
+ // together as a nested class inside ComputedStyle and dynamically allocated on use.
+ // Leave this out if the field is stored directly on ComputedStyle.
+ field_group: {
+ value_type: "str"
+ },
+
// - field_template
// Affects how the interface to this field is generated.
// TODO(sashab, meade): Remove this once TypedOM types are specified for
@@ -796,6 +804,10 @@
keywords: ["auto"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "external",
+ field_type_path: "platform/Length",
+ field_group: "surround",
+ default_value: "Length()",
},
{
name: "box-shadow",
@@ -1198,6 +1210,10 @@
keywords: ["auto"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "external",
+ field_type_path: "platform/Length",
+ field_group: "surround",
+ default_value: "Length()",
},
{
name: "letter-spacing",
@@ -1597,6 +1613,10 @@
keywords: ["auto"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "external",
+ field_type_path: "platform/Length",
+ field_group: "surround",
+ default_value: "Length()",
},
{
name: "r",
@@ -1915,6 +1935,10 @@
keywords: ["auto"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "external",
+ field_type_path: "platform/Length",
+ field_group: "surround",
+ default_value: "Length()",
},
{
name: "touch-action",

Powered by Google App Engine
This is Rietveld 408576698