Index: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp |
diff --git a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp |
index 4baaeb9fa98f9ce2d5a3a9a18e48369e42cb2d92..a4acd3142b6f5b6345feeae6f1b92961399a86d7 100644 |
--- a/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp |
+++ b/third_party/WebKit/Source/core/dom/custom/CustomElement.cpp |
@@ -74,6 +74,9 @@ HTMLElement* CustomElement::createCustomElement(Document& document, const Qualif |
{ |
DCHECK(shouldCreateCustomElement(document, tagName)); |
+ if (flags & DisableCustomElements) |
+ return HTMLElement::create(tagName, document); |
+ |
// TODO(kojii): Look up already defined custom elements when custom element |
// queues and upgrade are implemented. |