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

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: 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 4b6a5dd71779fb3287e8ce7cd56e55f36bd4509a..6a55bef72293dfe688f126e5d372e613d6fe5bf2 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
@@ -676,10 +676,13 @@
name: "border-bottom-width",
api_class: "CSSPropertyAPIBorderWidth",
converter: "ConvertLineWidth<float>",
- initial: "InitialBorderWidth",
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "primitive",
+ type_name: "float",
+ default_value: "3",
+ field_group: "surround",
},
{
name: "border-collapse",
@@ -737,10 +740,13 @@
name: "border-left-width",
api_class: "CSSPropertyAPIBorderWidth",
converter: "ConvertLineWidth<float>",
- initial: "InitialBorderWidth",
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "primitive",
+ type_name: "float",
+ default_value: "3",
+ field_group: "surround",
},
{
name: "border-right-color",
@@ -758,10 +764,13 @@
name: "border-right-width",
api_class: "CSSPropertyAPIBorderWidth",
converter: "ConvertLineWidth<float>",
- initial: "InitialBorderWidth",
interpolable: true,
keywords: ["thin", "medium", "thick"],
typedom_types: ["Length"],
+ field_template: "primitive",
+ type_name: "float",
+ default_value: "3",
+ field_group: "surround",
},
{
name: "border-top-color",
@@ -801,11 +810,14 @@
name: "border-top-width",
api_class: "CSSPropertyAPIBorderWidth",
converter: "ConvertLineWidth<float>",
- initial: "InitialBorderWidth",
interpolable: true,
keywords: ["thin", "medium", "thick"],
supports_percentage: true,
typedom_types: ["Length"],
+ field_template: "primitive",
+ type_name: "float",
+ default_value: "3",
+ field_group: "surround",
},
{
name: "bottom",

Powered by Google App Engine
This is Rietveld 408576698