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

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: Created 3 years, 7 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 c0d189ac4bdccb6643ac197829440ec5ca8c744f..17127eefc0a9c58b8d98046f2b8febba200fb539 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.
+ "keyword_set",
// Field stores a primitive value like int/bool. The type is specified by
// type_name. The interface has a initial/getter/setter/resetter.
"primitive",
@@ -2056,6 +2058,10 @@
name_for_methods: "TextDecoration",
runtime_flag: "CSS3TextDecorations",
type_name: "TextDecoration",
+ field_template: "keyword_set",
+ default_value: "none",
+ keywords: ["none", "underline", "overline", "line-through", "blink"],
+ field_group: "visual",
},
{
name: "text-decoration-skip",

Powered by Google App Engine
This is Rietveld 408576698