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

Unified Diff: Source/core/scripts/make_names.pl

Issue 18332025: Split CustomElementRegistry into a registration context and a registry. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Synced to tip. Created 7 years, 5 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 | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/scripts/make_names.pl
diff --git a/Source/core/scripts/make_names.pl b/Source/core/scripts/make_names.pl
index 4f01448b7325f79aa244d4c2421bb5982eef7bba..2e51b1cab58b9bf582a40c8039ef20e3bd70b6ac 100755
--- a/Source/core/scripts/make_names.pl
+++ b/Source/core/scripts/make_names.pl
@@ -837,7 +837,7 @@ print F <<END
#include "RuntimeEnabledFeatures.h"
#include "Settings.h"
-#include "CustomElementRegistry.h"
+#include "CustomElementRegistrationContext.h"
namespace WebCore {
@@ -891,8 +891,8 @@ print F <<END
if (!document)
return 0;
- if (RuntimeEnabledFeatures::customDOMElementsEnabled() && CustomElementRegistry::isCustomTagName(qName.localName())) {
- RefPtr<Element> element = document->ensureCustomElementRegistry()->createCustomTagElement(document, qName);
+ if (CustomElementRegistrationContext::isCustomTagName(qName.localName())) {
+ RefPtr<Element> element = document->registrationContext()->createCustomTagElement(document, qName);
ASSERT_WITH_SECURITY_IMPLICATION(element->is$parameters{namespace}Element());
return static_pointer_cast<$parameters{namespace}Element>(element.release());
}
@@ -1148,7 +1148,7 @@ END
Create$parameters{namespace}ElementWrapperFunction createWrapperFunction = map.get(element->localName().impl());
if (element->isCustomElement())
- return CustomElementWrapper<$parameters{namespace}Element>::wrap(element, creationContext, isolate, createWrapperFunction);
+ return CustomElementWrapper<$parameters{namespace}Element, V8$parameters{namespace}Element>::wrap(element, creationContext, isolate, createWrapperFunction);
if (createWrapperFunction)
{
END
« no previous file with comments | « Source/core/dom/Element.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698