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

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

Issue 2861773004: Move border-*-width out of BorderValue and store on SurroundData in ComputedStyle instead (Closed)
Patch Set: meade@'s suggestion 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/CSSProperties.json5
diff --git a/third_party/WebKit/Source/core/css/CSSProperties.json5 b/third_party/WebKit/Source/core/css/CSSProperties.json5
index 6d3486ccedd946f7396a41d6ebcce7710ec6dc7a..e3736112ea09c4fb3d87b104257fcbd2eda865ea 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
@@ -69,6 +69,14 @@
value_type: "str"
},
+ // - field_size
+ // Number of bits needed to store this field. Only used for storage_only
+ // fields. If specified, the field will be stored as bit field. Otherwise
+ // it will be stored as a normal data member.
+ field_size: {
+ valid_type: "int",
+ },
+
// - field_template
// Affects how the interface to this field is generated.
// TODO(sashab, meade): Remove this once TypedOM types are specified for
@@ -682,6 +690,11 @@
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "storage_only",
+ type_name: "unsigned",
+ field_size : 26,
+ default_value: "WidthToFixedPoint(3)",
+ field_group: "surround",
},
{
name: "border-collapse",
@@ -743,6 +756,11 @@
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "storage_only",
+ type_name: "unsigned",
+ field_size : 26,
+ default_value: "WidthToFixedPoint(3)",
+ field_group: "surround",
},
{
name: "border-right-color",
@@ -764,6 +782,11 @@
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "storage_only",
+ type_name: "unsigned",
+ field_size : 26,
+ default_value: "WidthToFixedPoint(3)",
+ field_group: "surround",
},
{
name: "border-top-color",
@@ -808,6 +831,11 @@
keywords: ["thin", "medium", "thick"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "storage_only",
+ type_name: "unsigned",
+ field_size : 26,
+ default_value: "WidthToFixedPoint(3)",
+ field_group: "surround",
},
{
name: "bottom",

Powered by Google App Engine
This is Rietveld 408576698