Index: Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
diff --git a/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp b/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
index 8cdacb2ffe9e53e923fe319150cf4715b7c4dace..403be179b09f16271cc47da26ea033f810fa85d1 100644 |
--- a/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
+++ b/Source/bindings/tests/results/V8TestInterfaceEventTarget.cpp |
@@ -60,14 +60,15 @@ static void V8TestInterfaceEventTargetConstructorCallback(const v8::FunctionCall |
return; |
} |
- Document* document = currentDOMWindow(isolate)->document(); |
- ASSERT(document); |
+ Document* documentPtr = currentDOMWindow(isolate)->document(); |
+ ASSERT(documentPtr); |
+ Document& document = *documentPtr; |
// Make sure the document is added to the DOM Node map. Otherwise, the TestInterfaceEventTarget instance |
// may end up being the only node in the map and get garbage-collected prematurely. |
- toV8(document, info.Holder(), isolate); |
+ toV8(documentPtr, info.Holder(), isolate); |
- RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget::createForJSConstructor(*document); |
+ RefPtrWillBeRawPtr<TestInterfaceEventTarget> impl = TestInterfaceEventTarget::createForJSConstructor(document); |
v8::Handle<v8::Object> wrapper = info.Holder(); |
V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceEventTarget>(impl.release(), &V8TestInterfaceEventTargetConstructor::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Independent); |