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

Unified Diff: third_party/WebKit/Source/core/dom/custom/CustomElement.cpp

Issue 2036983002: (CANCELED) Add CreateElementFlags::DisableCustomElements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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 | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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.
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698