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

Unified Diff: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl

Issue 2054433002: Implement "create an element" when sync for Custom Element V1 (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@async-ce
Patch Set: dominicc review Created 4 years, 6 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: third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
diff --git a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
index 7b7e9def78679f001184fff8bb1d1f579f2e9a16..d8e96407835569f7fa29bd4e000178be6f044785 100644
--- a/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
+++ b/third_party/WebKit/Source/build/scripts/templates/ElementFactory.cpp.tmpl
@@ -90,8 +90,12 @@ static void create{{namespace}}FunctionMap()
return function(document, {% if namespace == 'HTML' %}formElement, {% endif %}flags);
{% if namespace == 'HTML' %}
- if (CustomElement::shouldCreateCustomElement(document, localName))
- return CustomElement::createCustomElement(document, localName, flags);
+ if (CustomElement::shouldCreateCustomElement(document, localName)) {
+ QualifiedName tagName(nullAtom, localName, HTMLNames::xhtmlNamespaceURI);
+ if (flags & AsynchronousCustomElements)
+ return CustomElement::createCustomElementAsync(document, tagName);
+ return CustomElement::createCustomElementSync(document, tagName);
+ }
{% endif %}
if (document.registrationContext() && V0CustomElement::isValidName(localName)) {

Powered by Google App Engine
This is Rietveld 408576698