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

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

Issue 2903413002: Restructure type tracking in StyleValues to work better with new numeric types (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/build/scripts/make_css_property_metadata.py
diff --git a/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py b/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py
index 1fa4eba59cf01d6d187b049973cb69b7dc41c44c..500c85a3345567c34565f2fd34ad48aa100aa104 100755
--- a/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py
+++ b/third_party/WebKit/Source/build/scripts/make_css_property_metadata.py
@@ -18,7 +18,13 @@ class CSSPropertyMetadataWriter(css_properties.CSSProperties):
def __init__(self, json5_file_path):
super(CSSPropertyMetadataWriter, self).__init__(json5_file_path)
- self._outputs = {'CSSPropertyMetadata.cpp': self.generate_css_property_metadata_cpp}
+ self._outputs = {
+ 'CSSPropertyMetadata.cpp':
+ self.generate_css_property_metadata_cpp
+ }
+ for property_value in self._properties.values():
+ property_value['supports_percentage'] = (
+ 'Percent' in property_value['typedom_types'])
@template_expander.use_jinja('CSSPropertyMetadata.cpp.tmpl', filters=filters)
def generate_css_property_metadata_cpp(self):

Powered by Google App Engine
This is Rietveld 408576698