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

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

Issue 2329463004: ABANDONED CL: Changes needed to make things compile after running rewrite_to_chrome_style tool. (Closed)
Patch Set: More fixes - things build fine at this point. 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_style_builder.py
diff --git a/third_party/WebKit/Source/build/scripts/make_style_builder.py b/third_party/WebKit/Source/build/scripts/make_style_builder.py
index 70cc8e98e3e85dfcbd1bbd1c3cb0fc2e3b8a2682..f73c570bc698a6644d7aac6fb9526ceaa9e834fd 100755
--- a/third_party/WebKit/Source/build/scripts/make_style_builder.py
+++ b/third_party/WebKit/Source/build/scripts/make_style_builder.py
@@ -57,16 +57,16 @@ class StyleBuilderWriter(css_properties.CSSProperties):
name = property['name_for_methods']
simple_type_name = str(property['type_name']).split('::')[-1]
set_if_none(property, 'type_name', 'E' + name)
- set_if_none(property, 'getter', lower_first(name) if simple_type_name != name else 'get' + name)
- set_if_none(property, 'setter', 'set' + name)
+ set_if_none(property, 'getter', name if simple_type_name != name else 'Get' + name)
+ set_if_none(property, 'setter', 'Set' + name)
set_if_none(property, 'inherited', False)
- set_if_none(property, 'initial', 'initial' + name)
+ set_if_none(property, 'initial', 'Initial' + name)
if property['custom_all']:
property['custom_initial'] = True
property['custom_inherit'] = True
property['custom_value'] = True
if property['inherited']:
- property['is_inherited_setter'] = 'set' + name + 'IsInherited'
+ property['is_inherited_setter'] = 'Set' + name + 'IsInherited'
property['should_declare_functions'] = not property['use_handlers_for'] and not property['longhands'] \
and not property['direction_aware'] and not property['builder_skip'] \
and property['is_property']

Powered by Google App Engine
This is Rietveld 408576698