Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(616)

Unified Diff: Source/core/dom/Document.cpp

Issue 23886003: Have HTMLElements / SVGElements constructors take a Document reference in argument (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Another Android build fix Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/dom/CustomElementRegistrationContext.cpp ('k') | Source/core/dom/shadow/InsertionPoint.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « Source/core/dom/CustomElementRegistrationContext.cpp ('k') | Source/core/dom/shadow/InsertionPoint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698