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

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

Issue 1746283002: Rename enums/functions that collide in chromium style in platform/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: get-names-13-platform: . 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/core/animation/CSSLengthInterpolationType.cpp » ('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 4015dda879e3e525d5cc5d2c546e97da687bd67d..1e81ac22acf7db0d2b39a5a5f17cc5d9548695c5 100755
--- a/third_party/WebKit/Source/build/scripts/make_style_builder.py
+++ b/third_party/WebKit/Source/build/scripts/make_style_builder.py
@@ -55,8 +55,9 @@ class StyleBuilderWriter(css_properties.CSSProperties):
upper_camel = property['upper_camel_name']
set_if_none(property, 'name_for_methods', upper_camel.replace('Webkit', ''))
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 property['type_name'] != name else 'get' + 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, 'initial', 'initial' + name)
if property['custom_all']:
« no previous file with comments | « no previous file | third_party/WebKit/Source/core/animation/CSSLengthInterpolationType.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698