Index: Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp |
=================================================================== |
--- Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp (revision 108090) |
+++ Source/WebCore/bindings/v8/custom/V8CustomVoidCallback.cpp (working copy) |
@@ -83,8 +83,8 @@ |
v8::Handle<v8::Object> thisObject = v8::Context::GetCurrent()->Global(); |
- Page* page = scriptExecutionContext && scriptExecutionContext->isDocument() ? static_cast<Document*>(scriptExecutionContext)->page() : 0; |
- v8::Handle<v8::Value> result = V8Proxy::instrumentedCallFunction(page, callbackFunction, thisObject, argc, argv); |
+ Frame* frame = scriptExecutionContext && scriptExecutionContext->isDocument() ? static_cast<Document*>(scriptExecutionContext)->frame() : 0; |
+ v8::Handle<v8::Value> result = V8Proxy::instrumentedCallFunction(frame, callbackFunction, thisObject, argc, argv); |
callbackReturnValue = !result.IsEmpty() && result->BooleanValue(); |
return exceptionCatcher.HasCaught(); |