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

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

Issue 2693933003: Move field-dependent code in ComputedStyleBase to Jinja macros. (Closed)
Patch Set: DRY Created 3 years, 10 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 1367b7f18538ba98157805dc5d6def55b0fc608e..5038d27b429200a9aebd119f1755024920a795b3 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
@@ -49,7 +49,7 @@ class Field(object):
'property_name',
# Name of the type (e.g. EClear, int)
'type_name',
- # Affects how the field is generated (keyword, flag)
+ # Affects how the field is generated (keyword, flag, monotonic_flag)
'field_template',
# Bits needed for storage
'size',
@@ -208,7 +208,7 @@ def _create_nonproperty_field(field_name):
name=member_name,
property_name=field_name,
type_name='bool',
- field_template='flag',
+ field_template='monotonic_flag',
size=1,
default_value='false',
getter_method_name=field_name,

Powered by Google App Engine
This is Rietveld 408576698