| 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 69aa3176025b28514ea9f7980be5679cd81ae3ec..40ea90fe38bea82c0ee20af3d33631a192e65317 100644
|
| --- a/third_party/WebKit/Source/core/css/CSSProperties.json5
|
| +++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
|
| @@ -55,28 +55,25 @@
|
| valid_values: ["parseSingleValue", "parseShorthand"],
|
| },
|
|
|
| - // - keyword_only
|
| - // These properties only store keyword values. This is used when
|
| - // generating the ComputedStyle storage for the property. The initial
|
| - // value for this property on a ComputedStyle is specified with the
|
| - // initial_keyword flag below.
|
| - // TODO(sashab): Rename this to field_type=keyword once we support
|
| - // multiple types of generatable fields in ComputedStyle
|
| + // - field_template
|
| + // Affects how this field is generated in terms of storage and getter/setter methods.
|
| + // - 'keyword' fields are generated as enums stored in a bitfield.
|
| // TODO(sashab, meade): Remove this once TypedOM types are specified for
|
| // every property, since this value can be inferred from that.
|
| - keyword_only: {
|
| - default: false,
|
| - valid_type: "bool",
|
| + field_template: {
|
| + valid_values: [
|
| + "keyword", // Field can take on one of several keyword values. Stored as enum.
|
| + ],
|
| },
|
|
|
| - // - field_storage_type: "path/to/Type"
|
| + // - field_type_path: "path/to/Type"
|
| // For properties that have generated field storage in ComputedStyle,
|
| // this optional argument will override the field's generated type with
|
| // an external one specified at the given path. The type must be defined
|
| // in a header file at that path, and have the same name as the file.
|
| // Currently, only enum types are supported, and the enum's only values
|
| // must be CamelCase values of the keywords of the property.
|
| - field_storage_type: {
|
| + field_type_path: {
|
| },
|
|
|
| // - keywords: ["keyword1", "keyword2"]
|
| @@ -88,8 +85,7 @@
|
| },
|
|
|
| // - initial_keyword: "keyword-value"
|
| - // This specifies the initial keyword value for the keyword_only
|
| - // property.
|
| + // This specifies the initial keyword value for the keyword fields.
|
| initial_keyword: {
|
| },
|
|
|
| @@ -328,10 +324,10 @@
|
| {
|
| name: "direction",
|
| custom_value: true,
|
| - field_storage_type: "platform/text/TextDirection",
|
| + field_type_path: "platform/text/TextDirection",
|
| inherited: true,
|
| initial_keyword: "ltr",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["ltr", "rtl"],
|
| priority: "High",
|
| },
|
| @@ -481,10 +477,10 @@
|
| {
|
| name: "writing-mode",
|
| custom_value: true,
|
| - field_storage_type: "platform/text/WritingMode",
|
| + field_type_path: "platform/text/WritingMode",
|
| inherited: true,
|
| initial_keyword: "horizontal-tb",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["horizontal-tb", "vertical-rl", "vertical-lr"],
|
| priority: "High",
|
| type_name: "WritingMode",
|
| @@ -641,7 +637,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "separate",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["separate", "collapse"],
|
| },
|
| {
|
| @@ -768,7 +764,7 @@
|
| // Storage for this property also covers these legacy properties:
|
| // page-break-after, -webkit-column-break-after
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso"
|
| ],
|
| @@ -779,7 +775,7 @@
|
| // Storage for this property also covers these legacy properties:
|
| // page-break-before, -webkit-column-break-before
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "auto", "avoid", "avoid-column", "avoid-page", "column", "left", "page", "recto", "right", "verso"
|
| ],
|
| @@ -790,7 +786,7 @@
|
| // Storage for this property also covers these legacy properties:
|
| // page-break-inside, -webkit-column-break-inside
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["auto", "avoid", "avoid-column", "avoid-page"],
|
| },
|
| {
|
| @@ -802,7 +798,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "top",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["top", "bottom", "left", "right"],
|
| },
|
| {
|
| @@ -816,7 +812,7 @@
|
| {
|
| name: "clear",
|
| initial_keyword: "none",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["none", "left", "right", "both"],
|
| },
|
| {
|
| @@ -923,7 +919,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "show",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["show", "hide"],
|
| type_name: "EEmptyCells",
|
| },
|
| @@ -982,7 +978,7 @@
|
| {
|
| name: "float",
|
| initial_keyword: "none",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["none", "left", "right"],
|
| name_for_methods: "Floating",
|
| type_name: "EFloat",
|
| @@ -1176,14 +1172,14 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "outside",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["outside", "inside"],
|
| },
|
| {
|
| name: "list-style-type",
|
| inherited: true,
|
| initial_keyword: "disc",
|
| - keyword_only: true,
|
| + 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",
|
| ],
|
| @@ -1399,7 +1395,7 @@
|
| runtime_flag: "ScrollAnchoring",
|
| inherited: false,
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "visible", "none", "auto",
|
| ],
|
| @@ -1411,7 +1407,7 @@
|
| {
|
| name: "overflow-x",
|
| initial_keyword: "visible",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-webkit-paged-y",
|
| ],
|
| @@ -1420,7 +1416,7 @@
|
| {
|
| name: "overflow-y",
|
| initial_keyword: "visible",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "visible", "hidden", "scroll", "auto", "overlay", "-webkit-paged-x", "-webkit-paged-y",
|
| ],
|
| @@ -1482,7 +1478,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "none", "auto", "stroke", "fill", "painted", "visible", "visibleStroke", "visibleFill", "visiblePainted", "bounding-box", "all",
|
| ],
|
| @@ -1702,7 +1698,7 @@
|
| {
|
| name: "table-layout",
|
| initial_keyword: "auto",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "auto", "fixed"
|
| ]
|
| @@ -1720,7 +1716,7 @@
|
| custom_value: true,
|
| inherited: true,
|
| initial_keyword: "start",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "left", "right", "center", "justify", "webkitLeft", "webkitRight", "webkitCenter", "start", "end",
|
| ],
|
| @@ -1816,7 +1812,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "none",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["capitalize", "uppercase", "lowercase", "none"],
|
| },
|
| {
|
| @@ -1889,9 +1885,9 @@
|
| },
|
| {
|
| name: "unicode-bidi",
|
| - field_storage_type: "platform/text/UnicodeBidi",
|
| + field_type_path: "platform/text/UnicodeBidi",
|
| initial_keyword: "normal",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: [
|
| "normal", "embed", "bidi-override", "isolate", "plaintext", "isolate-override",
|
| ],
|
| @@ -1915,7 +1911,7 @@
|
| inherited: true,
|
| initial_keyword: "visible",
|
| interpolable: true,
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["visible", "hidden", "collapse"],
|
| },
|
| {
|
| @@ -1980,7 +1976,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "normal",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["normal", "reverse"],
|
| },
|
| {
|
| @@ -2185,7 +2181,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "economy",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["economy", "exact"],
|
| },
|
| {
|
| @@ -2194,7 +2190,7 @@
|
| inherited: true,
|
| initial: "initialRtlOrdering",
|
| initial_keyword: "logical",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["logical", "visual"],
|
| setter: "setRtlOrdering",
|
| type_name: "EOrder",
|
| @@ -2295,7 +2291,7 @@
|
| independent: true,
|
| inherited: true,
|
| initial_keyword: "normal",
|
| - keyword_only: true,
|
| + field_template: "keyword",
|
| keywords: ["normal", "pre", "pre-wrap", "pre-line", "nowrap", "-webkit-nowrap"],
|
| },
|
| {
|
|
|