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

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

Issue 2648703002: Implements CSSPropertyAPI for the margin properties. (Closed)
Patch Set: removed accidental lines in json Created 3 years, 11 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 36b6bbfee5298dbcf110c4fd69521e28cb6efc69..b02dc67637564d33f30e1eea034c706ac4f834a8 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
@@ -520,6 +520,7 @@
api_methods: ["parseSingleValue"],
converter: "convertSelfOrDefaultAlignmentData",
initial: "initialDefaultAlignment",
+ api_class: true,
},
{
name: "alignment-baseline",
@@ -736,6 +737,8 @@
},
{
name: "bottom",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertLengthOrAuto",
initial: "initialOffset",
interpolable: true,
@@ -1068,6 +1071,7 @@
converter: "convertSelfOrDefaultAlignmentData",
initial: "initialSelfAlignment",
runtime_flag: "CSSGridLayout",
+ api_class: true,
},
{
name: "justify-self",
@@ -1079,6 +1083,8 @@
},
{
name: "left",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertLengthOrAuto",
initial: "initialOffset",
interpolable: true,
@@ -1138,24 +1144,32 @@
},
{
name: "margin-bottom",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertQuirkyLength",
initial: "initialMargin",
interpolable: true,
},
{
name: "margin-left",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertQuirkyLength",
initial: "initialMargin",
interpolable: true,
},
{
name: "margin-right",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertQuirkyLength",
initial: "initialMargin",
interpolable: true,
},
{
name: "margin-top",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertQuirkyLength",
initial: "initialMargin",
interpolable: true,
@@ -1424,6 +1438,8 @@
},
{
name: "right",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertLengthOrAuto",
initial: "initialOffset",
interpolable: true,
@@ -1734,6 +1750,8 @@
},
{
name: "top",
+ api_class: "CSSPropertyAPIMargin",
+ api_methods: ["parseSingleValue"],
converter: "convertLengthOrAuto",
initial: "initialOffset",
interpolable: true,
@@ -2320,18 +2338,26 @@
},
{
name: "-webkit-margin-end",
+ api_class: "CSSPropertyAPIWebkitMargin",
+ api_methods: ["parseSingleValue"],
direction_aware: true,
},
{
name: "-webkit-margin-start",
+ api_class: "CSSPropertyAPIWebkitMargin",
+ api_methods: ["parseSingleValue"],
direction_aware: true,
},
{
name: "-webkit-margin-before",
+ api_class: "CSSPropertyAPIWebkitMargin",
+ api_methods: ["parseSingleValue"],
direction_aware: true,
},
{
name: "-webkit-margin-after",
+ api_class: "CSSPropertyAPIWebkitMargin",
+ api_methods: ["parseSingleValue"],
direction_aware: true,
},
{
« no previous file with comments | « third_party/WebKit/Source/core/css/BUILD.gn ('k') | third_party/WebKit/Source/core/css/parser/CSSPropertyParser.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698