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

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

Issue 2914613002: Add keyword_subset field template and generate text-decoration-line. (Closed)
Patch Set: Rebase Created 3 years, 6 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 94c9daba7c2a661aee8f823bfd908318f30f550f..7c2b367cfeca9ab47420558a9a5fc5d6de742ff0 100644
--- a/third_party/WebKit/Source/core/css/CSSProperties.json5
+++ b/third_party/WebKit/Source/core/css/CSSProperties.json5
@@ -87,6 +87,8 @@
// If include_paths is empty, we would also generate the corresponding
// enum definition in ComputedStyleConstants.h.
"keyword",
+ // Field can take on any subset of values from a list of keywords.
+ "multi_keyword",
// Field stores a primitive value like int/bool. The type is specified by
// type_name. The interface has a initial/getter/setter/resetter.
"primitive",
@@ -2553,9 +2555,9 @@
name_for_methods: "TextDecoration",
runtime_flag: "CSS3TextDecorations",
type_name: "TextDecoration",
- field_template: "storage_only",
- field_size: 4,
- default_value: "TextDecoration::kNone",
+ field_template: "multi_keyword",
+ default_value: "none",
+ keywords: ["none", "underline", "overline", "line-through", "blink"],
field_group: "visual",
},
{
« no previous file with comments | « third_party/WebKit/Source/core/css/CSSPrimitiveValueMappings.h ('k') | third_party/WebKit/Source/core/style/ComputedStyle.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698