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

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

Issue 2826633002: Exploit sharing when comparing and copying groups in ComputedStyle. (Closed)
Patch Set: Rebase Created 3 years, 8 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/template_expander.py » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3bf2698081ab669e618a944a72fafdc8557b5a24..b52ab45c015cddf0ee10ad7f4a8b266460fa3d80 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
@@ -359,7 +359,7 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
'ComputedStyleBaseConstants.h': self.generate_base_computed_style_constants,
}
- @template_expander.use_jinja('ComputedStyleBase.h.tmpl')
+ @template_expander.use_jinja('ComputedStyleBase.h.tmpl', tests={'in': lambda a, b: a in b})
def generate_base_computed_style_h(self):
return {
'properties': self._properties,
@@ -368,7 +368,7 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
'computed_style': self._root_group,
}
- @template_expander.use_jinja('ComputedStyleBase.cpp.tmpl')
+ @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,
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/template_expander.py » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698