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

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

Issue 14083009: Remove ENABLE_CUSTOM_ELEMENTS compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing. Created 7 years, 8 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/Document.h ('k') | Source/core/dom/Document.idl » ('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 fdab02d5f4c1d0275025ba4c105c15e438a2126e..3363b9279ff15e73f0002f7c9ddf8636f1792244 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -625,9 +625,7 @@ void Document::dispose()
detachParser();
-#if ENABLE(CUSTOM_ELEMENTS)
m_registry.clear();
-#endif
// removeDetachedChildren() doesn't always unregister IDs,
// so tear down scope information upfront to avoid having stale references in the map.
@@ -779,7 +777,6 @@ PassRefPtr<Element> Document::createElement(const AtomicString& name, ExceptionC
return createElement(QualifiedName(nullAtom, name, nullAtom), false);
}
-#if ENABLE(CUSTOM_ELEMENTS)
PassRefPtr<Element> Document::createElement(const AtomicString& localName, const AtomicString& typeExtension, ExceptionCode& ec)
{
if (!isValidName(localName)) {
@@ -838,7 +835,6 @@ void Document::didCreateCustomElement(Element* element, CustomElementConstructor
if (m_registry)
m_registry->didCreateElement(element);
}
-#endif // ENABLE(CUSTOM_ELEMENTS)
PassRefPtr<DocumentFragment> Document::createDocumentFragment()
{
« no previous file with comments | « Source/core/dom/Document.h ('k') | Source/core/dom/Document.idl » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698