Index: Source/core/html/HTMLInputElement.cpp |
diff --git a/Source/core/html/HTMLInputElement.cpp b/Source/core/html/HTMLInputElement.cpp |
index 0e0df09a3daa78a4a82ab022bef6d57c81a34a3d..2a95e3627fd87cf6f5fc763e2f3bee627df49c4b 100644 |
--- a/Source/core/html/HTMLInputElement.cpp |
+++ b/Source/core/html/HTMLInputElement.cpp |
@@ -98,7 +98,7 @@ const int HTMLInputElement::maximumLength = 524288; |
const int defaultSize = 20; |
const int maxSavedResults = 256; |
-HTMLInputElement::HTMLInputElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) |
+HTMLInputElement::HTMLInputElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form, bool createdByParser) |
: HTMLTextFormControlElement(tagName, document, form) |
, m_size(defaultSize) |
, m_maxLength(maximumLength) |
@@ -127,7 +127,7 @@ HTMLInputElement::HTMLInputElement(const QualifiedName& tagName, Document* docum |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLInputElement> HTMLInputElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) |
+PassRefPtr<HTMLInputElement> HTMLInputElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form, bool createdByParser) |
{ |
RefPtr<HTMLInputElement> inputElement = adoptRef(new HTMLInputElement(tagName, document, form, createdByParser)); |
inputElement->ensureUserAgentShadowRoot(); |