Index: Source/core/html/HTMLAudioElement.cpp |
diff --git a/Source/core/html/HTMLAudioElement.cpp b/Source/core/html/HTMLAudioElement.cpp |
index 07db2563fc3184f546272dbaa7c7c054bd08c333..245c3e4f3dd05da8eef96377b633fb1d1504803e 100644 |
--- a/Source/core/html/HTMLAudioElement.cpp |
+++ b/Source/core/html/HTMLAudioElement.cpp |
@@ -47,9 +47,9 @@ PassRefPtrWillBeRawPtr<HTMLAudioElement> HTMLAudioElement::create(Document& docu |
return audio.release(); |
} |
-PassRefPtrWillBeRawPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructor(Document& document, const AtomicString& src) |
+PassRefPtrWillBeRawPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructor(ExecutionContext* executionContext, const AtomicString& src) |
{ |
- RefPtrWillBeRawPtr<HTMLAudioElement> audio = adoptRefWillBeNoop(new HTMLAudioElement(document)); |
+ RefPtrWillBeRawPtr<HTMLAudioElement> audio = adoptRefWillBeNoop(new HTMLAudioElement(*toDocument(executionContext))); |
audio->ensureUserAgentShadowRoot(); |
audio->setPreload(AtomicString("auto", AtomicString::ConstructFromLiteral)); |
if (!src.isNull()) |