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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h

Issue 1372373002: bindings: Reduces the custom registration of methods. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 3 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/core/v8/V8PerContextData.h
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
index 90491109f054ff2b76e78059002c02c6ccc1a70d..15df092d62384d3406fd53e8f7ed828e9343559a 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PerContextData.h
@@ -82,8 +82,8 @@ public:
v8::Local<v8::Function> constructorForType(const WrapperTypeInfo* type)
{
- v8::Local<v8::Function> function = m_constructorMap.Get(type);
- return (!function.IsEmpty()) ? function : constructorForTypeSlowCase(type);
+ v8::Local<v8::Function> interfaceObject = m_constructorMap.Get(type);
+ return (!interfaceObject.IsEmpty()) ? interfaceObject : constructorForTypeSlowCase(type);
}
v8::Local<v8::Object> prototypeForType(const WrapperTypeInfo*);

Powered by Google App Engine
This is Rietveld 408576698