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

Unified Diff: third_party/WebKit/Source/build/scripts/css_properties.py

Issue 1386733003: Do not accept CSS-wide keywords for descriptors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Patch for landing Created 4 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/build/scripts/css_properties.py
diff --git a/third_party/WebKit/Source/build/scripts/css_properties.py b/third_party/WebKit/Source/build/scripts/css_properties.py
index 50f4f38c1306299ec53f58c3671c9e0cbc6098f3..d4b7977bc3a0136beb8d8e02fc92492ceacd65e8 100755
--- a/third_party/WebKit/Source/build/scripts/css_properties.py
+++ b/third_party/WebKit/Source/build/scripts/css_properties.py
@@ -10,6 +10,7 @@ import name_utilities
class CSSProperties(in_generator.Writer):
defaults = {
'alias_for': None,
+ 'descriptor_only': None,
'runtime_flag': None,
'longhands': '',
'interpolable': False,
@@ -53,6 +54,7 @@ class CSSProperties(in_generator.Writer):
in_generator.Writer.__init__(self, file_paths)
properties = self.in_file.name_dictionaries
+ self._descriptors = [property for property in properties if property['descriptor_only']]
self._aliases = [property for property in properties if property['alias_for']]
properties = [property for property in properties if not property['alias_for']]

Powered by Google App Engine
This is Rietveld 408576698