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 96bfa49c5fd7604c7b9512f8c3a4b3f63233a8e6..338b1076d25ff3efd8fe68d63442af07a9da808e 100644 |
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5 |
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5 |
@@ -74,7 +74,10 @@ |
"flag", |
// Field is stored as a bool, whose default value is false |
// and can only be set to true. Has a initial/getter/setter. |
- "monotonic_flag" |
+ "monotonic_flag", |
+ // Field has type specified at field_type_path and has a getter/setter. |
+ // Also has a setter taking an rvalue reference. Cannot be packed. |
+ "external", |
], |
}, |
@@ -96,9 +99,12 @@ |
default: [], |
}, |
- // - initial_keyword: "keyword-value" |
- // This specifies the initial keyword value for the keyword fields. |
- initial_keyword: { |
+ // - default_value: "keyword-value" |
+ // This specifies the default value for this field. |
+ // - for keyword fields, this is the initial keyword |
+ // - for other fields, this is a string containg the C++ expression |
+ // that is used to initialise the field. |
+ default_value: { |
}, |
// Flags which go into CSSOMTypes: |
@@ -338,7 +344,7 @@ |
custom_value: true, |
field_type_path: "platform/text/TextDirection", |
inherited: true, |
- initial_keyword: "ltr", |
+ default_value: "ltr", |
field_template: "keyword", |
keywords: ["ltr", "rtl"], |
priority: "High", |
@@ -500,7 +506,7 @@ |
custom_value: true, |
field_type_path: "platform/text/WritingMode", |
inherited: true, |
- initial_keyword: "horizontal-tb", |
+ default_value: "horizontal-tb", |
field_template: "keyword", |
keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"], |
priority: "High", |
@@ -663,7 +669,7 @@ |
name: "border-collapse", |
independent: true, |
inherited: true, |
- initial_keyword: "separate", |
+ default_value: "separate", |
field_template: "keyword", |
keywords: ["separate", "collapse"], |
}, |
@@ -800,7 +806,7 @@ |
name: "break-after", |
// Storage for this property also covers these legacy properties: |
// page-break-after, -webkit-column-break-after |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: [ |
"auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso" |
@@ -811,7 +817,7 @@ |
name: "break-before", |
// Storage for this property also covers these legacy properties: |
// page-break-before, -webkit-column-break-before |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: [ |
"auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso" |
@@ -822,7 +828,7 @@ |
name: "break-inside", |
// Storage for this property also covers these legacy properties: |
// page-break-inside, -webkit-column-break-inside |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: ["auto", "avoid", "avoid-column", "avoid-page"], |
}, |
@@ -834,7 +840,7 @@ |
name: "caption-side", |
independent: true, |
inherited: true, |
- initial_keyword: "top", |
+ default_value: "top", |
field_template: "keyword", |
keywords: ["top", "bottom", "left", "right"], |
}, |
@@ -848,7 +854,7 @@ |
}, |
{ |
name: "clear", |
- initial_keyword: "none", |
+ default_value: "none", |
field_template: "keyword", |
keywords: ["none", "left", "right", "both"], |
}, |
@@ -932,7 +938,7 @@ |
"nesw-resize", "nwse-resize", "col-resize", "row-resize", "all-scroll", "zoom-in", "zoom-out", |
"-webkit-grab", "-webkit-grabbing" |
], |
- initial_keyword: "auto", |
+ default_value: "auto", |
}, |
{ |
name: "cx", |
@@ -956,7 +962,7 @@ |
}, |
{ |
name: "display", |
- initial_keyword: "inline", |
+ default_value: "inline", |
field_template: 'keyword', |
keywords: [ |
"inline", "block", "list-item", "inline-block", "table", "inline-table", "table-row-group", "table-header-group", |
@@ -973,7 +979,7 @@ |
name: "empty-cells", |
independent: true, |
inherited: true, |
- initial_keyword: "show", |
+ default_value: "show", |
field_template: "keyword", |
keywords: ["show", "hide"], |
type_name: "EEmptyCells", |
@@ -1032,7 +1038,7 @@ |
"flex-wrap", |
{ |
name: "float", |
- initial_keyword: "none", |
+ default_value: "none", |
field_template: "keyword", |
keywords: ["none", "left", "right"], |
name_for_methods: "Floating", |
@@ -1238,14 +1244,14 @@ |
name: "list-style-position", |
independent: true, |
inherited: true, |
- initial_keyword: "outside", |
+ default_value: "outside", |
field_template: "keyword", |
keywords: ["outside", "inside"], |
}, |
{ |
name: "list-style-type", |
inherited: true, |
- initial_keyword: "disc", |
+ default_value: "disc", |
field_template: "keyword", |
keywords: [ |
"disc", "circle", "square", "decimal", "decimal-leading-zero", "arabic-indic", "bengali", "cambodian", "khmer", "devanagari", "gujarati", "gurmukhi", "kannada", "lao", "malayalam", "mongolian", "myanmar", "oriya", "persian", "urdu", "telugu", "tibetan", "thai", "lower-roman", "upper-roman", "lower-greek", "lower-alpha", "lower-latin", "upper-alpha", "upper-latin", "cjk-earthly-branch", "cjk-heavenly-stem", "ethiopic-halehame", "ethiopic-halehame-am", "ethiopic-halehame-ti-er", "ethiopic-halehame-ti-et", "hangul", "hangul-consonant", "korean-hangul-formal", "korean-hanja-formal", "korean-hanja-informal", "hebrew", "armenian", "lower-armenian", "upper-armenian", "georgian", "cjk-ideographic", "simp-chinese-formal", "simp-chinese-informal", "trad-chinese-formal", "trad-chinese-informal", "hiragana", "katakana", "hiragana-iroha", "katakana-iroha", "none", |
@@ -1470,7 +1476,7 @@ |
name: "overflow-anchor", |
runtime_flag: "ScrollAnchoring", |
inherited: false, |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: [ |
"visible", "none", "auto", |
@@ -1482,7 +1488,7 @@ |
}, |
{ |
name: "overflow-x", |
- initial_keyword: "visible", |
+ default_value: "visible", |
field_template: "keyword", |
keywords: [ |
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-webkit-paged-y", |
@@ -1491,7 +1497,7 @@ |
}, |
{ |
name: "overflow-y", |
- initial_keyword: "visible", |
+ default_value: "visible", |
field_template: "keyword", |
keywords: [ |
"visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-webkit-paged-y", |
@@ -1553,7 +1559,7 @@ |
name: "pointer-events", |
independent: true, |
inherited: true, |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: [ |
"none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all", |
@@ -1562,7 +1568,7 @@ |
{ |
name: "position", |
custom_inherit: true, |
- initial_keyword: "static", |
+ default_value: "static", |
field_template: "keyword", |
keywords: [ |
"static", "relative", "absolute", "fixed", "sticky", |
@@ -1770,7 +1776,7 @@ |
}, |
{ |
name: "table-layout", |
- initial_keyword: "auto", |
+ default_value: "auto", |
field_template: "keyword", |
keywords: [ |
"auto", "fixed" |
@@ -1789,7 +1795,7 @@ |
custom_value: true, |
independent: true, |
inherited: true, |
- initial_keyword: "start", |
+ default_value: "start", |
field_template: "keyword", |
keywords: [ |
"left", "right", "center", "justify", "webkitLeft", "webkitRight", "webkitCenter", "start", "end", |
@@ -1885,7 +1891,7 @@ |
name: "text-transform", |
independent: true, |
inherited: true, |
- initial_keyword: "none", |
+ default_value: "none", |
field_template: "keyword", |
keywords: ["capitalize", "uppercase", "lowercase", "none"], |
}, |
@@ -1960,7 +1966,7 @@ |
{ |
name: "unicode-bidi", |
field_type_path: "platform/text/UnicodeBidi", |
- initial_keyword: "normal", |
+ default_value: "normal", |
field_template: "keyword", |
keywords: [ |
"normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-override", |
@@ -1983,7 +1989,7 @@ |
name: "visibility", |
independent: true, |
inherited: true, |
- initial_keyword: "visible", |
+ default_value: "visible", |
interpolable: true, |
field_template: "keyword", |
keywords: ["visible", "hidden", "collapse"], |
@@ -2051,7 +2057,7 @@ |
name: "-webkit-box-direction", |
independent: true, |
inherited: true, |
- initial_keyword: "normal", |
+ default_value: "normal", |
field_template: "keyword", |
keywords: ["normal", "reverse"], |
}, |
@@ -2258,7 +2264,7 @@ |
name: "-webkit-print-color-adjust", |
independent: true, |
inherited: true, |
- initial_keyword: "economy", |
+ default_value: "economy", |
field_template: "keyword", |
keywords: ["economy", "exact"], |
}, |
@@ -2267,7 +2273,7 @@ |
independent: true, |
inherited: true, |
initial: "initialRtlOrdering", |
- initial_keyword: "logical", |
+ default_value: "logical", |
field_template: "keyword", |
keywords: ["logical", "visual"], |
setter: "setRtlOrdering", |
@@ -2368,7 +2374,7 @@ |
name: "white-space", |
independent: true, |
inherited: true, |
- initial_keyword: "normal", |
+ default_value: "normal", |
field_template: "keyword", |
keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-nowrap"], |
}, |