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

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

Issue 2578903002: Made -webkit-print-color-adjust property independent. (Closed)
Patch Set: . Created 4 years 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 6bda8f46625533ee1374a55a89fb66d2c5b6b523..e301f3b653fbb456da6bf0f255c704cd3a165ead 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
@@ -89,8 +89,6 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
for property in self._properties.values():
if property['keyword_only']:
property_name = property['name_for_methods']
- if property['name_for_methods']:
- property_name = property['name_for_methods']
property_name_lower = property_name[0].lower() + property_name[1:]
# From the Blink style guide: Other data members should be prefixed by "m_". [names-data-members]
@@ -106,7 +104,7 @@ class ComputedStyleBaseWriter(make_style_builder.StyleBuilderWriter):
# If the property is independent, add the single-bit sized isInherited flag
# to the list of Fields as well.
if property['independent']:
- field_name_suffix_upper = property['name_for_methods'] + 'IsInherited'
+ field_name_suffix_upper = property_name + 'IsInherited'
field_name_suffix_lower = property_name_lower + 'IsInherited'
self._fields.append(Field(
'inherited_flag',

Powered by Google App Engine
This is Rietveld 408576698