Index: Source/core/html/HTMLMarqueeElement.cpp |
diff --git a/Source/core/html/HTMLMarqueeElement.cpp b/Source/core/html/HTMLMarqueeElement.cpp |
index e4c034737433f89eaaa1068dd244c679b0c78ceb..fb472d335150252f3c00425ac54c459dda0ef507 100644 |
--- a/Source/core/html/HTMLMarqueeElement.cpp |
+++ b/Source/core/html/HTMLMarqueeElement.cpp |
@@ -34,15 +34,15 @@ namespace WebCore { |
using namespace HTMLNames; |
-inline HTMLMarqueeElement::HTMLMarqueeElement(const QualifiedName& tagName, Document* document) |
+inline HTMLMarqueeElement::HTMLMarqueeElement(const QualifiedName& tagName, Document& document) |
: HTMLElement(tagName, document) |
- , ActiveDOMObject(document) |
+ , ActiveDOMObject(&document) |
{ |
ASSERT(hasTagName(marqueeTag)); |
ScriptWrappable::init(this); |
} |
-PassRefPtr<HTMLMarqueeElement> HTMLMarqueeElement::create(const QualifiedName& tagName, Document* document) |
+PassRefPtr<HTMLMarqueeElement> HTMLMarqueeElement::create(const QualifiedName& tagName, Document& document) |
{ |
RefPtr<HTMLMarqueeElement> marqueeElement(adoptRef(new HTMLMarqueeElement(tagName, document))); |
marqueeElement->suspendIfNeeded(); |