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

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: Removing flag from features.gypi 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
Index: Source/core/scripts/make_names.pl
diff --git a/Source/core/scripts/make_names.pl b/Source/core/scripts/make_names.pl
index 31d1f217a51e68a8cbf9b1257273bcb5b9adc460..49db2dc8327d5a39edb69869fa683b0912460ac1 100755
--- a/Source/core/scripts/make_names.pl
+++ b/Source/core/scripts/make_names.pl
@@ -856,10 +856,8 @@ print F <<END
#include "ContextFeatures.h"
#include "RuntimeEnabledFeatures.h"
-#if ENABLE(CUSTOM_ELEMENTS)
#include "CustomElementConstructor.h"
#include "CustomElementRegistry.h"
-#endif
#if ENABLE(VIDEO)
#include "Document.h"
@@ -922,7 +920,6 @@ END
;
print F <<END
-#if ENABLE(CUSTOM_ELEMENTS)
if (document->registry()) {
if (RefPtr<CustomElementConstructor> constructor = document->registry()->find(nullQName(), qName)) {
RefPtr<Element> element = constructor->createElement();
@@ -930,7 +927,6 @@ print F <<END
return static_pointer_cast<$parameters{namespace}Element>(element.release());
}
}
-#endif
if (!gFunctionMap)
createFunctionMap();
@@ -1206,9 +1202,7 @@ END
print F <<END
#include "V8$parameters{namespace}Element.h"
-#if ENABLE(CUSTOM_ELEMENTS)
#include "CustomElementHelpers.h"
-#endif
#include <v8.h>
END
@@ -1283,10 +1277,8 @@ END
;
if ($wrapperFactoryType eq "V8") {
print F <<END
-#if ENABLE(CUSTOM_ELEMENTS)
if (PassRefPtr<CustomElementConstructor> constructor = CustomElementHelpers::constructorOf(element))
return CustomElementHelpers::wrap(element, creationContext, constructor, isolate);
-#endif
END
;
}
« Source/bindings/scripts/CodeGeneratorV8.pm ('K') | « Source/core/html/parser/HTMLScriptRunner.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698