Index: Source/core/html/HTMLFormElement.cpp |
diff --git a/Source/core/html/HTMLFormElement.cpp b/Source/core/html/HTMLFormElement.cpp |
index 20f20e13ef666c042d685dc7a22f5c0b94f60e25..01e36dff9a2b4a84ebc37ff2b10635c4ce6ef4e5 100644 |
--- a/Source/core/html/HTMLFormElement.cpp |
+++ b/Source/core/html/HTMLFormElement.cpp |
@@ -56,7 +56,7 @@ namespace WebCore { |
using namespace HTMLNames; |
-HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document* document) |
+HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document& document) |
: HTMLElement(tagName, document) |
, m_associatedElementsBeforeIndex(0) |
, m_associatedElementsAfterIndex(0) |
@@ -71,15 +71,15 @@ HTMLFormElement::HTMLFormElement(const QualifiedName& tagName, Document* documen |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLFormElement> HTMLFormElement::create(Document* document) |
+PassRefPtr<HTMLFormElement> HTMLFormElement::create(Document& document) |
{ |
- UseCounter::count(document, UseCounter::FormElement); |
+ UseCounter::count(&document, UseCounter::FormElement); |
return adoptRef(new HTMLFormElement(formTag, document)); |
} |
-PassRefPtr<HTMLFormElement> HTMLFormElement::create(const QualifiedName& tagName, Document* document) |
+PassRefPtr<HTMLFormElement> HTMLFormElement::create(const QualifiedName& tagName, Document& document) |
{ |
- UseCounter::count(document, UseCounter::FormElement); |
+ UseCounter::count(&document, UseCounter::FormElement); |
return adoptRef(new HTMLFormElement(tagName, document)); |
} |