| Index: Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| diff --git a/Source/bindings/core/v8/custom/V8WindowCustom.cpp b/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| index 56d59f21441962ef56cf435de9ae52eeba5558fc..83a91efb6ce3d4033035bd2add6a7dcee31927b4 100644
|
| --- a/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| +++ b/Source/bindings/core/v8/custom/V8WindowCustom.cpp
|
| @@ -345,25 +345,4 @@ bool V8Window::indexedSecurityCheckCustom(v8::Local<v8::Object> host, uint32_t i
|
| return securityCheck(host);
|
| }
|
|
|
| -v8::Handle<v8::Value> toV8(DOMWindow* window, v8::Handle<v8::Object> creationContext, v8::Isolate* isolate)
|
| -{
|
| - // Notice that we explicitly ignore creationContext because the LocalDOMWindow is its own creationContext.
|
| -
|
| - if (!window)
|
| - return v8::Null(isolate);
|
| - // Initializes environment of a frame, and return the global object
|
| - // of the frame.
|
| - Frame * frame = window->frame();
|
| - if (!frame)
|
| - return v8Undefined();
|
| -
|
| - v8::Local<v8::Context> context = toV8Context(frame, DOMWrapperWorld::current(isolate));
|
| - if (context.IsEmpty())
|
| - return v8Undefined();
|
| -
|
| - v8::Local<v8::Object> global = context->Global();
|
| - ASSERT(!global.IsEmpty());
|
| - return global;
|
| -}
|
| -
|
| } // namespace blink
|
|
|