Index: Source/core/html/HTMLScriptElement.cpp |
diff --git a/Source/core/html/HTMLScriptElement.cpp b/Source/core/html/HTMLScriptElement.cpp |
index e6dfc402f306128cb19d04cd65aa56ba890511e2..0e7ad16b63b966e5b8372465e216f07b5400b8b9 100644 |
--- a/Source/core/html/HTMLScriptElement.cpp |
+++ b/Source/core/html/HTMLScriptElement.cpp |
@@ -37,7 +37,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document* document, bool wasInsertedByParser, bool alreadyStarted) |
+inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Document& document, bool wasInsertedByParser, bool alreadyStarted) |
: HTMLElement(tagName, document) |
, m_loader(ScriptLoader::create(this, wasInsertedByParser, alreadyStarted)) |
{ |
@@ -45,7 +45,7 @@ inline HTMLScriptElement::HTMLScriptElement(const QualifiedName& tagName, Docume |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document* document, bool wasInsertedByParser, bool alreadyStarted) |
+PassRefPtr<HTMLScriptElement> HTMLScriptElement::create(const QualifiedName& tagName, Document& document, bool wasInsertedByParser, bool alreadyStarted) |
{ |
return adoptRef(new HTMLScriptElement(tagName, document, wasInsertedByParser, alreadyStarted)); |
} |
@@ -169,7 +169,7 @@ void HTMLScriptElement::dispatchLoadEvent() |
PassRefPtr<Element> HTMLScriptElement::cloneElementWithoutAttributesAndChildren() |
{ |
- return adoptRef(new HTMLScriptElement(tagQName(), &document(), false, m_loader->alreadyStarted())); |
+ return adoptRef(new HTMLScriptElement(tagQName(), document(), false, m_loader->alreadyStarted())); |
} |
} |