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

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

Issue 14083009: Remove ENABLE_CUSTOM_ELEMENTS compile time flag (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Rebasing. Created 7 years, 8 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/page/RuntimeEnabledFeatures.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 6bd66359d9bbd7666b6142452567441ed18ef12e..97f857ae50d173b4c16f67e5a7311d71a7757dd3 100755
--- a/Source/core/scripts/make_names.pl
+++ b/Source/core/scripts/make_names.pl
@@ -843,10 +843,8 @@ print F <<END
#include "RuntimeEnabledFeatures.h"
#include "Settings.h"
-#if ENABLE(CUSTOM_ELEMENTS)
#include "CustomElementConstructor.h"
#include "CustomElementRegistry.h"
-#endif
namespace WebCore {
@@ -900,7 +898,6 @@ print F <<END
if (!document)
return 0;
-#if ENABLE(CUSTOM_ELEMENTS)
if (document->registry()) {
if (RefPtr<CustomElementConstructor> constructor = document->registry()->find(nullQName(), qName)) {
RefPtr<Element> element = constructor->createElement();
@@ -908,7 +905,6 @@ print F <<END
return static_pointer_cast<$parameters{namespace}Element>(element.release());
}
}
-#endif
if (!gFunctionMap)
createFunctionMap();
@@ -1114,9 +1110,7 @@ sub printWrapperFactoryCppFile
#include "V8$parameters{namespace}Element.h"
-#if ENABLE(CUSTOM_ELEMENTS)
#include "CustomElementHelpers.h"
-#endif
#include <v8.h>
@@ -1160,10 +1154,9 @@ END
print F <<END
}
-#if ENABLE(CUSTOM_ELEMENTS)
+
if (PassRefPtr<CustomElementConstructor> constructor = CustomElementHelpers::constructorOf(element))
return CustomElementHelpers::wrap(element, creationContext, constructor, isolate);
-#endif
Create$parameters{namespace}ElementWrapperFunction createWrapperFunction = map.get(element->localName().impl());
if (createWrapperFunction)
{
« no previous file with comments | « Source/core/page/RuntimeEnabledFeatures.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698