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