| Index: third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| diff --git a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| index e8494d5be24cfab255ecda8c4a405ff76369e9df..def966f6dfba4b8c928228eaaedb1465a6d6cabc 100644
|
| --- a/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| +++ b/third_party/WebKit/Source/bindings/core/v8/LocalWindowProxy.cpp
|
| @@ -221,9 +221,8 @@ void LocalWindowProxy::SetupWindowPrototypeChain() {
|
| // The global proxy object. Note this is not the global object.
|
| v8::Local<v8::Object> global_proxy = context->Global();
|
| CHECK(global_proxy_ == global_proxy);
|
| - v8::Local<v8::Object> associated_wrapper =
|
| - AssociateWithWrapper(window, wrapper_type_info, global_proxy);
|
| - DCHECK(associated_wrapper == global_proxy);
|
| + V8DOMWrapper::SetNativeInfo(GetIsolate(), global_proxy, wrapper_type_info,
|
| + window);
|
| // Mark the handle to be traced by Oilpan, since the global proxy has a
|
| // reference to the DOMWindow.
|
| global_proxy_.Get().SetWrapperClassId(wrapper_type_info->wrapper_class_id);
|
| @@ -231,8 +230,9 @@ void LocalWindowProxy::SetupWindowPrototypeChain() {
|
| // The global object, aka window wrapper object.
|
| v8::Local<v8::Object> window_wrapper =
|
| global_proxy->GetPrototype().As<v8::Object>();
|
| - V8DOMWrapper::SetNativeInfo(GetIsolate(), window_wrapper, wrapper_type_info,
|
| - window);
|
| + v8::Local<v8::Object> associated_wrapper =
|
| + AssociateWithWrapper(window, wrapper_type_info, window_wrapper);
|
| + DCHECK(associated_wrapper == window_wrapper);
|
|
|
| // The prototype object of Window interface.
|
| v8::Local<v8::Object> window_prototype =
|
|
|