Index: Source/core/html/HTMLSelectElement.cpp |
diff --git a/Source/core/html/HTMLSelectElement.cpp b/Source/core/html/HTMLSelectElement.cpp |
index be63119089e4102eea56138b304ca87bdb076e03..b3e4147995fa6950ccc530bf7e46ada9a0471b48 100644 |
--- a/Source/core/html/HTMLSelectElement.cpp |
+++ b/Source/core/html/HTMLSelectElement.cpp |
@@ -65,7 +65,7 @@ using namespace HTMLNames; |
// Upper limit agreed upon with representatives of Opera and Mozilla. |
static const unsigned maxSelectItems = 10000; |
-HTMLSelectElement::HTMLSelectElement(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) |
+HTMLSelectElement::HTMLSelectElement(const QualifiedName& tagName, Document& document, HTMLFormElement* form, bool createdByParser) |
: HTMLFormControlElementWithState(tagName, document, form) |
, m_typeAhead(this) |
, m_size(0) |
@@ -82,12 +82,12 @@ HTMLSelectElement::HTMLSelectElement(const QualifiedName& tagName, Document* doc |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLSelectElement> HTMLSelectElement::create(Document* document) |
+PassRefPtr<HTMLSelectElement> HTMLSelectElement::create(Document& document) |
{ |
return adoptRef(new HTMLSelectElement(selectTag, document, 0, false)); |
} |
-PassRefPtr<HTMLSelectElement> HTMLSelectElement::create(const QualifiedName& tagName, Document* document, HTMLFormElement* form, bool createdByParser) |
+PassRefPtr<HTMLSelectElement> HTMLSelectElement::create(const QualifiedName& tagName, Document& document, HTMLFormElement* form, bool createdByParser) |
{ |
ASSERT(tagName.matches(selectTag)); |
return adoptRef(new HTMLSelectElement(tagName, document, form, createdByParser)); |