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

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: Add comments 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
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 88bebe5598f36d604183f4e6120a5b9ee6200a1f..1f087f10c1dfe4ccab765f9084f4e9bc07a32ae8 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
@@ -425,7 +425,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,
@@ -434,7 +434,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,

Powered by Google App Engine
This is Rietveld 408576698