Index: Source/core/html/HTMLAudioElement.cpp |
diff --git a/Source/core/html/HTMLAudioElement.cpp b/Source/core/html/HTMLAudioElement.cpp |
index b1993bc85178fbc34678ac8c133c2cd2b7e05a98..30764e505e0420148f3c616d908bb47248a6e7e3 100644 |
--- a/Source/core/html/HTMLAudioElement.cpp |
+++ b/Source/core/html/HTMLAudioElement.cpp |
@@ -32,22 +32,22 @@ namespace WebCore { |
using namespace HTMLNames; |
-HTMLAudioElement::HTMLAudioElement(Document& document, bool createdByParser) |
- : HTMLMediaElement(audioTag, document, createdByParser) |
+HTMLAudioElement::HTMLAudioElement(Document& document) |
+ : HTMLMediaElement(audioTag, document) |
{ |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLAudioElement> HTMLAudioElement::create(Document& document, bool createdByParser) |
+PassRefPtr<HTMLAudioElement> HTMLAudioElement::create(Document& document) |
{ |
- RefPtr<HTMLAudioElement> audioElement(adoptRef(new HTMLAudioElement(document, createdByParser))); |
+ RefPtr<HTMLAudioElement> audioElement(adoptRef(new HTMLAudioElement(document))); |
audioElement->suspendIfNeeded(); |
return audioElement.release(); |
} |
PassRefPtr<HTMLAudioElement> HTMLAudioElement::createForJSConstructor(Document& document, const AtomicString& src) |
{ |
- RefPtr<HTMLAudioElement> audio = adoptRef(new HTMLAudioElement(document, false)); |
+ RefPtr<HTMLAudioElement> audio = adoptRef(new HTMLAudioElement(document)); |
audio->setPreload(AtomicString("auto", AtomicString::ConstructFromLiteral)); |
if (!src.isNull()) |
audio->setSrc(src); |