Index: Source/core/html/HTMLButtonElement.cpp |
diff --git a/Source/core/html/HTMLButtonElement.cpp b/Source/core/html/HTMLButtonElement.cpp |
index 0f55e0e343b35ef4840ec0f549a96b16b744729f..b1ee00adc5a998b9138f4ea995f4f4160f567588 100644 |
--- a/Source/core/html/HTMLButtonElement.cpp |
+++ b/Source/core/html/HTMLButtonElement.cpp |
@@ -39,7 +39,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-inline HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form) |
+inline HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form) |
: HTMLFormControlElement(tagName, document, form) |
, m_type(SUBMIT) |
, m_isActivatedSubmit(false) |
@@ -48,7 +48,7 @@ inline HTMLButtonElement::HTMLButtonElement(const QualifiedName& tagName, Docume |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLButtonElement> HTMLButtonElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form) |
+PassRefPtr<HTMLButtonElement> HTMLButtonElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form) |
{ |
return adoptRef(new HTMLButtonElement(tagName, document, form)); |
} |