| 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()
 | 
|  {
 | 
| 
 |