| Index: Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
| diff --git a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
| index dd89b49439b3b2d0495445ec76627882ee56e872..e80cf52da5dd0ce8e395c334a58380e2c63edf4a 100644
|
| --- a/Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
| +++ b/Source/bindings/tests/results/V8TestInterfaceNamedConstructor.cpp
|
| @@ -85,9 +85,10 @@ static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
|
| return;
|
| }
|
|
|
| - Document* documentPtr = currentDOMWindow(isolate)->document();
|
| + ExecutionContext* executionContext = currentExecutionContext(info.GetIsolate());
|
| +
|
| + Document* documentPtr = toDocument(executionContext);
|
| ASSERT(documentPtr);
|
| - Document& document = *documentPtr;
|
|
|
| // Make sure the document is added to the DOM Node map. Otherwise, the TestInterfaceNamedConstructor instance
|
| // may end up being the only node in the map and get garbage-collected prematurely.
|
| @@ -113,7 +114,7 @@ static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
|
| TOSTRING_VOID_INTERNAL(defaultUndefinedOptionalStringArg, info[3]);
|
| TOSTRING_VOID_INTERNAL(defaultNullStringOptionalstringArg, argumentOrNull(info, 4));
|
| if (UNLIKELY(info.Length() <= 5)) {
|
| - RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, exceptionState);
|
| + RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(executionContext, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, exceptionState);
|
| v8::Handle<v8::Object> wrapper = info.Holder();
|
| V8DOMWrapper::associateObjectWithWrapper<V8TestInterfaceNamedConstructor>(impl.release(), &V8TestInterfaceNamedConstructorConstructor::wrapperTypeInfo, wrapper, isolate, WrapperConfiguration::Dependent);
|
| v8SetReturnValue(info, wrapper);
|
| @@ -121,7 +122,7 @@ static void V8TestInterfaceNamedConstructorConstructorCallback(const v8::Functio
|
| }
|
| TOSTRING_VOID_INTERNAL(optionalStringArg, info[5]);
|
| }
|
| - RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(document, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, optionalStringArg, exceptionState);
|
| + RefPtr<TestInterfaceNamedConstructor> impl = TestInterfaceNamedConstructor::createForJSConstructor(executionContext, stringArg, defaultUndefinedOptionalBooleanArg, defaultUndefinedOptionalLongArg, defaultUndefinedOptionalStringArg, defaultNullStringOptionalstringArg, optionalStringArg, exceptionState);
|
| if (exceptionState.throwIfNeeded())
|
| return;
|
|
|
|
|