Index: third_party/WebKit/Source/build/scripts/make_computed_style_base.py |
diff --git a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py |
index 50dc4e572cf04b5179ad2ca2304fefc2cd0478f0..dd1dd2867930463b507693a7df43bfef1ed14867 100755 |
--- a/third_party/WebKit/Source/build/scripts/make_computed_style_base.py |
+++ b/third_party/WebKit/Source/build/scripts/make_computed_style_base.py |
@@ -442,6 +442,7 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter): |
self._include_paths = _get_include_paths(all_properties) |
self._outputs = { |
'ComputedStyleBase.h': self.generate_base_computed_style_h, |
+ 'ComputedStyleBase.cpp': self.generate_base_computed_style_cpp, |
'ComputedStyleBaseConstants.h': self.generate_base_computed_style_constants, |
} |
@@ -455,6 +456,16 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter): |
'diff_functions_map': self._diff_functions_map, |
} |
+ @template_expander.use_jinja('ComputedStyleBase.cpp.tmpl', tests={'in': lambda a, b: a in b}) |
+ def generate_base_computed_style_cpp(self): |
+ return { |
+ 'properties': self._properties, |
+ 'enums': self._generated_enums, |
+ 'include_paths': self._include_paths, |
+ 'computed_style': self._root_group, |
+ 'diff_functions_map': self._diff_functions_map, |
+ } |
+ |
@template_expander.use_jinja('ComputedStyleBaseConstants.h.tmpl') |
def generate_base_computed_style_constants(self): |
return { |