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

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

Issue 1743803002: Rename enums/functions that collide in chromium style in core/style/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@get-names-8
Patch Set: get-names-9: rebase Created 4 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl » ('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_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 8ad952067b13e57bff019e52ea31632db5aacb4b..4015dda879e3e525d5cc5d2c546e97da687bd67d 100755
--- a/third_party/WebKit/Source/build/scripts/make_style_builder.py
+++ b/third_party/WebKit/Source/build/scripts/make_style_builder.py
@@ -56,7 +56,7 @@ class StyleBuilderWriter(css_properties.CSSProperties):
set_if_none(property, 'name_for_methods', upper_camel.replace('Webkit', ''))
name = property['name_for_methods']
set_if_none(property, 'type_name', 'E' + name)
- set_if_none(property, 'getter', lower_first(name))
+ set_if_none(property, 'getter', lower_first(name) if property['type_name'] != name else 'get' + name)
set_if_none(property, 'setter', 'set' + name)
set_if_none(property, 'initial', 'initial' + name)
if property['custom_all']:
« no previous file with comments | « no previous file | third_party/WebKit/Source/build/scripts/templates/StyleBuilder.cpp.tmpl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698