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

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

Issue 2826653002: Generate getters/setters for some fields on groups in ComputedStyle (Closed)
Patch Set: Append Internal to all protected methods 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_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 fbb0aff6366e0d9a2d3d65e2eb8eb658f45d8fde..bdc5f3e5d3c88ee6880a36b4ac4e4f8be4d32780 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
@@ -134,6 +134,9 @@ class Field(object):
# Method names
self.getter_method_name = getter_method_name
self.setter_method_name = setter_method_name
+ self.internal_getter_method_name = method_name(join_name(getter_method_name, name_for_methods, 'Internal'))
+ self.internal_mutable_method_name = method_name(join_name('Mutable', name_for_methods, 'Internal'))
+ self.internal_setter_method_name = method_name(join_name(setter_method_name, name_for_methods, 'Internal'))
self.initial_method_name = initial_method_name
self.resetter_method_name = method_name(join_name('Reset', name_for_methods))

Powered by Google App Engine
This is Rietveld 408576698