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

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

Issue 17707002: Implement Custom Elements inserted and removed callbacks. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 6 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 34ad7320d34e3eed6d49601fd25dec6af4b6c4f2..d91be6c4062115dff1eb00e5f65cb14bd41325d0 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -764,13 +764,13 @@ PassRefPtr<Element> Document::createElement(const AtomicString& localName, const
RefPtr<Element> element;
if (CustomElementRegistry::isCustomTagName(localName))
- element = ensureCustomElementRegistry()->createCustomTagElement(QualifiedName(nullAtom, localName, xhtmlNamespaceURI));
+ element = ensureCustomElementRegistry()->createCustomTagElement(QualifiedName(nullAtom, localName, xhtmlNamespaceURI), false);
else
element = createElement(localName, ec);
if (!typeExtension.isNull()) {
setTypeExtension(element.get(), typeExtension);
- ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension);
+ ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension, false);
}
return element;
@@ -790,13 +790,13 @@ PassRefPtr<Element> Document::createElementNS(const AtomicString& namespaceURI,
RefPtr<Element> element;
if (CustomElementRegistry::isCustomTagName(qName.localName()))
- element = ensureCustomElementRegistry()->createCustomTagElement(qName);
+ element = ensureCustomElementRegistry()->createCustomTagElement(qName, false);
else
element = createElementNS(namespaceURI, qualifiedName, ec);
if (!typeExtension.isNull()) {
setTypeExtension(element.get(), typeExtension);
- ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension);
+ ensureCustomElementRegistry()->didGiveTypeExtension(element.get(), typeExtension, false);
}
return element;

Powered by Google App Engine
This is Rietveld 408576698