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

Unified Diff: third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl

Issue 2768393004: [Bindings] Rename CachedAccessorCallback method in generated code (Closed)
Patch Set: . Created 3 years, 9 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/bindings/templates/attributes.cpp.tmpl
diff --git a/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl b/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl
index d3a8c1242170c32ec31a55b466786461d969c394..7f7dc8cd932553b87f4c7c8729a6856cd4984ccc 100644
--- a/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl
+++ b/third_party/WebKit/Source/bindings/templates/attributes.cpp.tmpl
@@ -246,10 +246,10 @@ const v8::FunctionCallbackInfo<v8::Value>& info
{##############################################################################}
-{% macro attribute_cache_property_callback(attribute) %}
-v8::Local<v8::Private> {{v8_class_or_partial}}::{{attribute.name}}CachedAccessorCallback(v8::Isolate* isolate)
+{% macro attribute_cached_property_key(attribute) %}
+v8::Local<v8::Private> {{v8_class_or_partial}}::{{attribute.name}}CachedPropertyKey(v8::Isolate* isolate)
{
- return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).getPrivate();
+ return V8PrivateProperty::get{{attribute.cached_accessor_name}}(isolate).getPrivate();
}
{% endmacro %}
@@ -480,7 +480,7 @@ const v8::FunctionCallbackInfo<v8::Value>& info
{% set property_attribute = 'static_cast<v8::PropertyAttribute>(%s)' %
' | '.join(attribute.property_attributes) %}
{% set cached_accessor_callback =
- '%s::%sCachedAccessorCallback' % (v8_class_or_partial, attribute.name)
+ '%s::%sCachedPropertyKey' % (v8_class_or_partial, attribute.name)
if attribute.is_cached_accessor else
'nullptr' %}
{% set holder_check = 'V8DOMConfiguration::DoNotCheckHolder'

Powered by Google App Engine
This is Rietveld 408576698