Index: Source/core/dom/Document.cpp |
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp |
index c013012f76a60b8f86eed1e8468fdd0c5fcfe44a..78fe20a9703fd6bc3632d4369dd5aae62e3beb79 100644 |
--- a/Source/core/dom/Document.cpp |
+++ b/Source/core/dom/Document.cpp |
@@ -722,7 +722,7 @@ PassRefPtr<Element> Document::createElement(const AtomicString& localName, const |
RefPtr<Element> element; |
if (CustomElement::isValidName(localName) && registrationContext()) |
- element = registrationContext()->createCustomTagElement(this, QualifiedName(nullAtom, localName, xhtmlNamespaceURI)); |
+ element = registrationContext()->createCustomTagElement(*this, QualifiedName(nullAtom, localName, xhtmlNamespaceURI)); |
else |
element = createElement(localName, es); |
@@ -746,7 +746,7 @@ PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI, |
RefPtr<Element> element; |
if (CustomElement::isValidName(qName.localName()) && registrationContext()) |
- element = registrationContext()->createCustomTagElement(this, qName); |
+ element = registrationContext()->createCustomTagElement(*this, qName); |
else |
element = createElementNS(namespaceURI, qualifiedName, es); |
@@ -4582,7 +4582,7 @@ HTMLCanvasElement* Document::getCSSCanvasElement(const String& name) |
{ |
RefPtr<HTMLCanvasElement>& element = m_cssCanvasElements.add(name, 0).iterator->value; |
if (!element) { |
- element = HTMLCanvasElement::create(this); |
+ element = HTMLCanvasElement::create(*this); |
element->setAccelerationDisabled(true); |
} |
return element.get(); |