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

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: Removing flag from features.gypi 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
Index: Source/core/dom/Document.cpp
diff --git a/Source/core/dom/Document.cpp b/Source/core/dom/Document.cpp
index 3ff02559674a20da7bbb81f51bd9c284da25e06c..8d93c70284f5d62299089d7f59b032e6a471a646 100644
--- a/Source/core/dom/Document.cpp
+++ b/Source/core/dom/Document.cpp
@@ -636,9 +636,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.
@@ -790,7 +788,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)) {
@@ -849,7 +846,6 @@ void Document::didCreateCustomElement(Element* element, CustomElementConstructor
if (m_registry)
m_registry->didCreateElement(element);
}
-#endif // ENABLE(CUSTOM_ELEMENTS)
PassRefPtr<DocumentFragment> Document::createDocumentFragment()
{

Powered by Google App Engine
This is Rietveld 408576698