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): |