| Index: Source/core/html/HTMLVideoElement.cpp
|
| diff --git a/Source/core/html/HTMLVideoElement.cpp b/Source/core/html/HTMLVideoElement.cpp
|
| index 1a1201478de0acf4d8d01c74018a112b2e39477a..b84af081563f1c485bc9c19551113b632bb4afad 100644
|
| --- a/Source/core/html/HTMLVideoElement.cpp
|
| +++ b/Source/core/html/HTMLVideoElement.cpp
|
| @@ -43,16 +43,16 @@ namespace WebCore {
|
|
|
| using namespace HTMLNames;
|
|
|
| -inline HTMLVideoElement::HTMLVideoElement(const QualifiedName& tagName, Document* document, bool createdByParser)
|
| +inline HTMLVideoElement::HTMLVideoElement(const QualifiedName& tagName, Document& document, bool createdByParser)
|
| : HTMLMediaElement(tagName, document, createdByParser)
|
| {
|
| ASSERT(hasTagName(videoTag));
|
| ScriptWrappable::init(this);
|
| - if (document->settings())
|
| - m_defaultPosterURL = document->settings()->defaultVideoPosterURL();
|
| + if (document.settings())
|
| + m_defaultPosterURL = document.settings()->defaultVideoPosterURL();
|
| }
|
|
|
| -PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(const QualifiedName& tagName, Document* document, bool createdByParser)
|
| +PassRefPtr<HTMLVideoElement> HTMLVideoElement::create(const QualifiedName& tagName, Document& document, bool createdByParser)
|
| {
|
| RefPtr<HTMLVideoElement> videoElement(adoptRef(new HTMLVideoElement(tagName, document, createdByParser)));
|
| videoElement->suspendIfNeeded();
|
|
|