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