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

Unified Diff: third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp

Issue 21370: Implement deferToInterceptor function to help with readability of the binding... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 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
Index: third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp
===================================================================
--- third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp (revision 9792)
+++ third_party/WebKit/WebCore/bindings/v8/custom/V8HTMLPlugInElementCustom.cpp (working copy)
@@ -48,11 +48,11 @@
HTMLPlugInElement* imp = V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Local<v8::Object>();
+ return deferToInterceptor();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Local<v8::Object>();
+ return deferToInterceptor();
return NPObjectGetNamedProperty(instance, name);
}
@@ -63,11 +63,11 @@
HTMLPlugInElement* imp = V8Proxy::DOMWrapperToNode<HTMLPlugInElement>(info.Holder());
ScriptInstance scriptInstance = imp->getInstance();
if (!scriptInstance)
- return v8::Local<v8::Object>();
+ return deferToInterceptor();
v8::Local<v8::Object> instance = v8::Local<v8::Object>::New(scriptInstance->instance());
if (instance.IsEmpty())
- return v8::Local<v8::Object>();
+ return deferToInterceptor();
return NPObjectSetNamedProperty(instance, name, value);
}

Powered by Google App Engine
This is Rietveld 408576698