| Index: Source/bindings/v8/Dictionary.cpp
|
| diff --git a/Source/bindings/v8/Dictionary.cpp b/Source/bindings/v8/Dictionary.cpp
|
| index ffb54ecbd7a78cce41a026913cc4da4c37f914db..66be0a491b9f5357173bbbc6b3300ea83c262f2b 100644
|
| --- a/Source/bindings/v8/Dictionary.cpp
|
| +++ b/Source/bindings/v8/Dictionary.cpp
|
| @@ -315,13 +315,7 @@ bool Dictionary::get(const String& key, RefPtr<DOMWindow>& value) const
|
|
|
| // We need to handle a DOMWindow specially, because a DOMWindow wrapper
|
| // exists on a prototype chain of v8Value.
|
| - value = 0;
|
| - if (v8Value->IsObject()) {
|
| - v8::Handle<v8::Object> wrapper = v8::Handle<v8::Object>::Cast(v8Value);
|
| - v8::Handle<v8::Object> window = wrapper->FindInstanceInPrototypeChain(V8Window::domTemplate(m_isolate, worldTypeInMainThread(m_isolate)));
|
| - if (!window.IsEmpty())
|
| - value = V8Window::toNative(window);
|
| - }
|
| + value = toNativeDOMWindow(v8Value, m_isolate);
|
| return true;
|
| }
|
|
|
|
|