Title: [208256] trunk
Revision
208256
Author
rn...@webkit.org
Date
2016-11-01 16:16:49 -0700 (Tue, 01 Nov 2016)

Log Message

Remove CUSTOM_ELEMENTS build flag
https://bugs.webkit.org/show_bug.cgi?id=164267

Reviewed by Antti Koivisto.

.:

Removed the build flag.

* Source/cmake/OptionsEfl.cmake:
* Source/cmake/OptionsWin.cmake:
* Source/cmake/WebKitFeatures.cmake:

Source/_javascript_Core:

Removed the build flag.

* Configurations/FeatureDefines.xcconfig:

Source/WebCore:

Removed the build flag. Also rebaselined the bindings tests.

* Configurations/FeatureDefines.xcconfig:
* DerivedSources.cpp:
* bindings/generic/RuntimeEnabledFeatures.h:
(WebCore::RuntimeEnabledFeatures::customElementsEnabled):
* bindings/js/JSCSSStyleDeclarationCustom.cpp:
(WebCore::JSCSSStyleDeclaration::putDelegate):
* bindings/js/JSCustomElementInterface.cpp:
* bindings/js/JSCustomElementInterface.h:
* bindings/js/JSCustomElementRegistryCustom.cpp:
* bindings/js/JSDOMStringMapCustom.cpp:
(WebCore::JSDOMStringMap::deleteProperty):
(WebCore::JSDOMStringMap::putDelegate):
* bindings/js/JSElementCustom.cpp:
(WebCore::toJSNewlyCreated):
* bindings/js/JSHTMLElementCustom.cpp:
(WebCore::constructJSHTMLElement):
* bindings/js/JSHTMLOptionsCollectionCustom.cpp:
(WebCore::JSHTMLOptionsCollection::setLength):
(WebCore::JSHTMLOptionsCollection::indexSetter):
* bindings/js/JSHTMLSelectElementCustom.cpp:
(WebCore::JSHTMLSelectElement::indexSetter):
* bindings/js/JSMainThreadExecState.h:
* bindings/scripts/CodeGeneratorJS.pm:
(GenerateImplementation):
* bindings/scripts/test/JS/JSTestCEReactions.cpp:
(WebCore::setJSTestCEReactionsAttributeWithCEReactionsFunction):
(WebCore::setJSTestCEReactionsReflectAttributeWithCEReactionsFunction):
(WebCore::setJSTestCEReactionsStringifierAttributeFunction):
(WebCore::jsTestCEReactionsPrototypeFunctionMethodWithCEReactions):
* bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp:
(WebCore::setJSTestCEReactionsStringifierValueFunction):
* css/CSSSelector.cpp:
(WebCore::CSSSelector::selectorText):
* css/CSSSelector.h:
* css/PropertySetCSSStyleDeclaration.cpp:
* css/SelectorChecker.cpp:
(WebCore::SelectorChecker::checkOne):
* css/SelectorCheckerTestFunctions.h:
(WebCore::isDefinedElement):
* css/SelectorPseudoClassAndCompatibilityElementMap.in:
* cssjit/SelectorCompiler.cpp:
(WebCore::SelectorCompiler::addPseudoClassType):
* dom/CustomElementReactionQueue.cpp:
* dom/CustomElementReactionQueue.h:
* dom/CustomElementRegistry.cpp:
* dom/CustomElementRegistry.h:
* dom/CustomElementRegistry.idl:
* dom/Document.cpp:
(WebCore::createHTMLElementWithNameValidation):
(WebCore::createFallbackHTMLElement):
* dom/Element.cpp:
(WebCore::Element::attributeChanged):
(WebCore::Element::didMoveToNewDocument):
(WebCore::Element::insertedInto):
(WebCore::Element::removedFrom):
* dom/Element.h:
* dom/ElementRareData.cpp:
* dom/ElementRareData.h:
(WebCore::ElementRareData::setCustomElementReactionQueue):
* dom/Node.h:
(WebCore::Node::isFailedCustomElement):
* dom/make_names.pl:
(printWrapperFactoryCppFile):
* html/HTMLElement.idl:
* html/parser/HTMLConstructionSite.cpp:
(WebCore::HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface):
* html/parser/HTMLConstructionSite.h:
* html/parser/HTMLDocumentParser.cpp:
(WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
* html/parser/HTMLTreeBuilder.cpp:
(WebCore::HTMLTreeBuilder::insertGenericHTMLElement):
(WebCore::HTMLTreeBuilder::didCreateCustomOrCallbackElement):
* html/parser/HTMLTreeBuilder.h:
(WebCore::HTMLTreeBuilder::hasParserBlockingScriptWork):
* page/DOMWindow.cpp:
* page/DOMWindow.h:
* page/DOMWindow.idl:

Source/WebKit/mac:

Removed the build flag.

* Configurations/FeatureDefines.xcconfig:
* WebView/WebPreferences.mm:
(+[WebPreferences initialize]):
* WebView/WebView.mm:
(-[WebView _preferencesChanged:]):

Source/WebKit/win:

Removed the build flag.

* WebView.cpp:
(WebView::notifyPreferencesChanged):

Source/WebKit2:

Removed the build flag.

* Configurations/FeatureDefines.xcconfig:
* WebProcess/InjectedBundle/InjectedBundle.cpp:
(WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
* WebProcess/WebPage/WebPage.cpp:
(WebKit::WebPage::updatePreferences):

Tools:

Removed the build flag.

* TestWebKitAPI/Configurations/FeatureDefines.xcconfig:

Modified Paths

Diff

Modified: trunk/ChangeLog (208255 => 208256)


--- trunk/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,16 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * Source/cmake/OptionsEfl.cmake:
+        * Source/cmake/OptionsWin.cmake:
+        * Source/cmake/WebKitFeatures.cmake:
+
 2016-11-01  Fujii Hironori  <hironori.fu...@sony.com>
 
         [CMake] generate-bindings-all.pl uses USES_TERMINAL which leaves a noisy line in interactive Ninja build

Modified: trunk/Source/_javascript_Core/ChangeLog (208255 => 208256)


--- trunk/Source/_javascript_Core/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/_javascript_Core/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,14 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * Configurations/FeatureDefines.xcconfig:
+
 2016-11-01  Keith Miller  <keith_mil...@apple.com>
 
         Add a WASM function validator.

Modified: trunk/Source/_javascript_Core/Configurations/FeatureDefines.xcconfig (208255 => 208256)


--- trunk/Source/_javascript_Core/Configurations/FeatureDefines.xcconfig	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/_javascript_Core/Configurations/FeatureDefines.xcconfig	2016-11-01 23:16:49 UTC (rev 208256)
@@ -206,8 +206,6 @@
 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
 
-ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-
 ENABLE_VARIATION_FONTS[sdk=embedded*] = $(ENABLE_VARIATION_FONTS_$(PLATFORM_NAME));
 ENABLE_VARIATION_FONTS_iphoneos = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_iphonesimulator = ENABLE_VARIATION_FONTS;
@@ -220,4 +218,4 @@
 ENABLE_VARIATION_FONTS_IF_NOT_NO = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_IF_NOT_YES = ;
 
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFU
 NCTION_SYNTAX) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SES
 SION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_R
 EPLAY) $(ENABLE_WEB_RTC) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
+FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_ES6
 _MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE
 ) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_RTC) $(
 ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);

Modified: trunk/Source/WebCore/ChangeLog (208255 => 208256)


--- trunk/Source/WebCore/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,90 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag. Also rebaselined the bindings tests.
+
+        * Configurations/FeatureDefines.xcconfig:
+        * DerivedSources.cpp:
+        * bindings/generic/RuntimeEnabledFeatures.h:
+        (WebCore::RuntimeEnabledFeatures::customElementsEnabled):
+        * bindings/js/JSCSSStyleDeclarationCustom.cpp:
+        (WebCore::JSCSSStyleDeclaration::putDelegate):
+        * bindings/js/JSCustomElementInterface.cpp:
+        * bindings/js/JSCustomElementInterface.h:
+        * bindings/js/JSCustomElementRegistryCustom.cpp:
+        * bindings/js/JSDOMStringMapCustom.cpp:
+        (WebCore::JSDOMStringMap::deleteProperty):
+        (WebCore::JSDOMStringMap::putDelegate):
+        * bindings/js/JSElementCustom.cpp:
+        (WebCore::toJSNewlyCreated):
+        * bindings/js/JSHTMLElementCustom.cpp:
+        (WebCore::constructJSHTMLElement):
+        * bindings/js/JSHTMLOptionsCollectionCustom.cpp:
+        (WebCore::JSHTMLOptionsCollection::setLength):
+        (WebCore::JSHTMLOptionsCollection::indexSetter):
+        * bindings/js/JSHTMLSelectElementCustom.cpp:
+        (WebCore::JSHTMLSelectElement::indexSetter):
+        * bindings/js/JSMainThreadExecState.h:
+        * bindings/scripts/CodeGeneratorJS.pm:
+        (GenerateImplementation):
+        * bindings/scripts/test/JS/JSTestCEReactions.cpp:
+        (WebCore::setJSTestCEReactionsAttributeWithCEReactionsFunction):
+        (WebCore::setJSTestCEReactionsReflectAttributeWithCEReactionsFunction):
+        (WebCore::setJSTestCEReactionsStringifierAttributeFunction):
+        (WebCore::jsTestCEReactionsPrototypeFunctionMethodWithCEReactions):
+        * bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp:
+        (WebCore::setJSTestCEReactionsStringifierValueFunction):
+        * css/CSSSelector.cpp:
+        (WebCore::CSSSelector::selectorText):
+        * css/CSSSelector.h:
+        * css/PropertySetCSSStyleDeclaration.cpp:
+        * css/SelectorChecker.cpp:
+        (WebCore::SelectorChecker::checkOne):
+        * css/SelectorCheckerTestFunctions.h:
+        (WebCore::isDefinedElement):
+        * css/SelectorPseudoClassAndCompatibilityElementMap.in:
+        * cssjit/SelectorCompiler.cpp:
+        (WebCore::SelectorCompiler::addPseudoClassType):
+        * dom/CustomElementReactionQueue.cpp:
+        * dom/CustomElementReactionQueue.h:
+        * dom/CustomElementRegistry.cpp:
+        * dom/CustomElementRegistry.h:
+        * dom/CustomElementRegistry.idl:
+        * dom/Document.cpp:
+        (WebCore::createHTMLElementWithNameValidation):
+        (WebCore::createFallbackHTMLElement):
+        * dom/Element.cpp:
+        (WebCore::Element::attributeChanged):
+        (WebCore::Element::didMoveToNewDocument):
+        (WebCore::Element::insertedInto):
+        (WebCore::Element::removedFrom):
+        * dom/Element.h:
+        * dom/ElementRareData.cpp:
+        * dom/ElementRareData.h:
+        (WebCore::ElementRareData::setCustomElementReactionQueue):
+        * dom/Node.h:
+        (WebCore::Node::isFailedCustomElement):
+        * dom/make_names.pl:
+        (printWrapperFactoryCppFile):
+        * html/HTMLElement.idl:
+        * html/parser/HTMLConstructionSite.cpp:
+        (WebCore::HTMLConstructionSite::createHTMLElementOrFindCustomElementInterface):
+        * html/parser/HTMLConstructionSite.h:
+        * html/parser/HTMLDocumentParser.cpp:
+        (WebCore::HTMLDocumentParser::runScriptsForPausedTreeBuilder):
+        * html/parser/HTMLTreeBuilder.cpp:
+        (WebCore::HTMLTreeBuilder::insertGenericHTMLElement):
+        (WebCore::HTMLTreeBuilder::didCreateCustomOrCallbackElement):
+        * html/parser/HTMLTreeBuilder.h:
+        (WebCore::HTMLTreeBuilder::hasParserBlockingScriptWork):
+        * page/DOMWindow.cpp:
+        * page/DOMWindow.h:
+        * page/DOMWindow.idl:
+
 2016-11-01  Antoine Quint  <grao...@apple.com>
 
         [Modern Media Controls] Media Controller: Airplay support

Modified: trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig (208255 => 208256)


--- trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig	2016-11-01 23:16:49 UTC (rev 208256)
@@ -206,8 +206,6 @@
 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
 
-ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-
 ENABLE_VARIATION_FONTS[sdk=embedded*] = $(ENABLE_VARIATION_FONTS_$(PLATFORM_NAME));
 ENABLE_VARIATION_FONTS_iphoneos = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_iphonesimulator = ENABLE_VARIATION_FONTS;
@@ -220,4 +218,4 @@
 ENABLE_VARIATION_FONTS_IF_NOT_NO = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_IF_NOT_YES = ;
 
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFU
 NCTION_SYNTAX) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SES
 SION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_R
 EPLAY) $(ENABLE_WEB_RTC) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
+FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_ES6
 _MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE
 ) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_RTC) $(
 ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);

Modified: trunk/Source/WebCore/DerivedSources.cpp (208255 => 208256)


--- trunk/Source/WebCore/DerivedSources.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/DerivedSources.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -136,9 +136,7 @@
 #include "JSCSSValue.cpp"
 #include "JSCSSValueList.cpp"
 #include "JSClipboardEvent.cpp"
-#if ENABLE(CUSTOM_ELEMENTS)
 #include "JSCustomElementRegistry.cpp"
-#endif
 #include "JSCustomEvent.cpp"
 #include "JSDatabase.cpp"
 #include "JSDatabaseCallback.cpp"

Modified: trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h (208255 => 208256)


--- trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -204,10 +204,8 @@
     void setInteractiveFormValidationEnabled(bool isEnabled) { m_isInteractiveFormValidationEnabled = isEnabled; }
     bool interactiveFormValidationEnabled() const { return m_isInteractiveFormValidationEnabled; }
 
-#if ENABLE(CUSTOM_ELEMENTS)
     void setCustomElementsEnabled(bool areEnabled) { m_areCustomElementsEnabled = areEnabled; }
     bool customElementsEnabled() const { return m_areCustomElementsEnabled; }
-#endif
 
 #if ENABLE(WEBGL2)
     void setWebGL2Enabled(bool isEnabled) { m_isWebGL2Enabled = isEnabled; }
@@ -328,9 +326,7 @@
 
     bool m_isInteractiveFormValidationEnabled { false };
 
-#if ENABLE(CUSTOM_ELEMENTS)
-    bool m_areCustomElementsEnabled;
-#endif
+    bool m_areCustomElementsEnabled { true };
 
 #if ENABLE(WEBGL2)
     bool m_isWebGL2Enabled;

Modified: trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSCSSStyleDeclarationCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -323,9 +323,7 @@
 
 bool JSCSSStyleDeclaration::putDelegate(ExecState* state, PropertyName propertyName, JSValue value, PutPropertySlot&, bool& putResult)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     auto propertyInfo = parseJavaScriptCSSPropertyName(propertyName);
     if (!propertyInfo.propertyID)
         return false;

Modified: trunk/Source/WebCore/bindings/js/JSCustomElementInterface.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSCustomElementInterface.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSCustomElementInterface.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -28,8 +28,6 @@
 #include "config.h"
 #include "JSCustomElementInterface.h"
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include "DOMWrapperWorld.h"
 #include "HTMLUnknownElement.h"
 #include "JSDOMBinding.h"
@@ -302,5 +300,3 @@
 }
 
 } // namespace WebCore
-
-#endif

Modified: trunk/Source/WebCore/bindings/js/JSCustomElementInterface.h (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSCustomElementInterface.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSCustomElementInterface.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -26,8 +26,6 @@
 
 #pragma once
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include "ActiveDOMCallback.h"
 #include "QualifiedName.h"
 #include <heap/Weak.h>
@@ -110,5 +108,3 @@
 };
 
 } // namespace WebCore
-
-#endif // ENABLE(CUSTOM_ELEMENTS)

Modified: trunk/Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSCustomElementRegistryCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -38,8 +38,6 @@
 
 namespace WebCore {
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 static JSObject* getCustomElementCallback(ExecState& state, JSObject& prototype, const Identifier& id)
 {
     VM& vm = state.vm();
@@ -202,6 +200,4 @@
     return promise;
 }
 
-#endif
-
 }

Modified: trunk/Source/WebCore/bindings/js/JSDOMStringMapCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSDOMStringMapCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSDOMStringMapCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -59,10 +59,7 @@
 
 bool JSDOMStringMap::deleteProperty(JSCell* cell, ExecState* state, PropertyName propertyName)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
-
     if (propertyName.isSymbol())
         return Base::deleteProperty(cell, state, propertyName);
     return jsCast<JSDOMStringMap*>(cell)->wrapped().deleteItem(propertyNameToString(propertyName));
@@ -81,9 +78,7 @@
     if (propertyName.isSymbol())
         return false;
 
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
 
     String stringValue = value.toWTFString(state);
     RETURN_IF_EXCEPTION(scope, true);

Modified: trunk/Source/WebCore/bindings/js/JSElementCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSElementCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSElementCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -66,10 +66,8 @@
 
 JSValue toJSNewlyCreated(ExecState*, JSDOMGlobalObject* globalObject, Ref<Element>&& element)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     if (element->isDefinedCustomElement())
         return getCachedWrapper(globalObject->world(), element);
-#endif
     ASSERT(!getCachedWrapper(globalObject->world(), element));
     return createNewElementWrapper(globalObject, WTFMove(element));
 }

Modified: trunk/Source/WebCore/bindings/js/JSHTMLElementCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSHTMLElementCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSHTMLElementCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -40,7 +40,6 @@
 
 using namespace JSC;
 
-#if ENABLE(CUSTOM_ELEMENTS)
 EncodedJSValue JSC_HOST_CALL constructJSHTMLElement(ExecState& exec)
 {
     VM& vm = exec.vm();
@@ -107,7 +106,6 @@
 
     return JSValue::encode(elementWrapperValue);
 }
-#endif
 
 JSScope* JSHTMLElement::pushEventHandlerScope(ExecState* exec, JSScope* scope) const
 {

Modified: trunk/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSHTMLOptionsCollectionCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -50,10 +50,7 @@
 
 void JSHTMLOptionsCollection::setLength(ExecState& state, JSValue value)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
-
     VM& vm = state.vm();
     auto throwScope = DECLARE_THROW_SCOPE(vm);
     double number = value.toNumber(&state);
@@ -70,10 +67,7 @@
 
 void JSHTMLOptionsCollection::indexSetter(ExecState* state, unsigned index, JSValue value)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
-
     selectElementIndexSetter(*state, wrapped().selectElement(), index, value);
 }
 

Modified: trunk/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSHTMLSelectElementCustom.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -55,10 +55,7 @@
 
 void JSHTMLSelectElement::indexSetter(JSC::ExecState* state, unsigned index, JSC::JSValue value)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
-
     selectElementIndexSetter(*state, wrapped(), index, value);
 }
 

Modified: trunk/Source/WebCore/bindings/js/JSMainThreadExecState.h (208255 => 208256)


--- trunk/Source/WebCore/bindings/js/JSMainThreadExecState.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/js/JSMainThreadExecState.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -176,9 +176,7 @@
 
 private:
     JSC::ExecState* m_previousState;
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack m_customElementReactionStack;
-#endif
 };
 
 JSC::JSValue functionCallHandlerFromAnyThread(JSC::ExecState*, JSC::JSValue functionObject, JSC::CallType, const JSC::CallData&, JSC::JSValue thisValue, const JSC::ArgList& args, NakedPtr<JSC::Exception>& returnedException);

Modified: trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm (208255 => 208256)


--- trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/scripts/CodeGeneratorJS.pm	2016-11-01 23:16:49 UTC (rev 208256)
@@ -3460,9 +3460,7 @@
             }
 
             if ($attribute->extendedAttributes->{CEReactions}) {
-                push(@implContent, "#if ENABLE(CUSTOM_ELEMENTS)\n");
                 push(@implContent, "    CustomElementReactionStack customElementReactionStack;\n");
-                push(@implContent, "#endif\n");
                 $implIncludes{"CustomElementReactionQueue.h"} = 1;
             }
 
@@ -3519,9 +3517,7 @@
                         my $forwardedAttribute = $codeGenerator->GetAttributeFromInterface($interface, $type->name, $putForwards);
 
                         if ($forwardedAttribute->extendedAttributes->{CEReactions}) {
-                            push(@implContent, "#if ENABLE(CUSTOM_ELEMENTS)\n");
                             push(@implContent, "    CustomElementReactionStack customElementReactionStack;\n");
-                            push(@implContent, "#endif\n");
                             $implIncludes{"CustomElementReactionQueue.h"} = 1;
                         }
 
@@ -3748,9 +3744,7 @@
             $implIncludes{"<runtime/Error.h>"} = 1;
 
             if ($function->extendedAttributes->{CEReactions}) {
-                push(@implContent, "#if ENABLE(CUSTOM_ELEMENTS)\n");
                 push(@implContent, "    CustomElementReactionStack customElementReactionStack;\n");
-                push(@implContent, "#endif\n");
                 $implIncludes{"CustomElementReactionQueue.h"} = 1;
             }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactions.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactions.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactions.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -228,9 +228,7 @@
 {
     UNUSED_PARAM(state);
     UNUSED_PARAM(throwScope);
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     auto& impl = thisObject.wrapped();
     auto nativeValue = convert<IDLDOMString>(state, value, StringConversionConfiguration::Normal);
     RETURN_IF_EXCEPTION(throwScope, false);
@@ -250,9 +248,7 @@
 {
     UNUSED_PARAM(state);
     UNUSED_PARAM(throwScope);
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     auto& impl = thisObject.wrapped();
     auto nativeValue = convert<IDLDOMString>(state, value, StringConversionConfiguration::Normal);
     RETURN_IF_EXCEPTION(throwScope, false);
@@ -272,9 +268,7 @@
 {
     UNUSED_PARAM(state);
     UNUSED_PARAM(throwScope);
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     Ref<TestCEReactionsStringifier> forwardedImpl = thisObject.wrapped().stringifierAttribute();
     auto& impl = forwardedImpl.get();
     auto nativeValue = convert<IDLDOMString>(state, value, StringConversionConfiguration::Normal);
@@ -293,9 +287,7 @@
 
 EncodedJSValue JSC_HOST_CALL jsTestCEReactionsPrototypeFunctionMethodWithCEReactions(ExecState* state)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     return BindingCaller<JSTestCEReactions>::callOperation<jsTestCEReactionsPrototypeFunctionMethodWithCEReactionsCaller>(state, "methodWithCEReactions");
 }
 

Modified: trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp (208255 => 208256)


--- trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/bindings/scripts/test/JS/JSTestCEReactionsStringifier.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -188,9 +188,7 @@
 {
     UNUSED_PARAM(state);
     UNUSED_PARAM(throwScope);
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionStack customElementReactionStack;
-#endif
     auto& impl = thisObject.wrapped();
     auto nativeValue = convert<IDLDOMString>(state, value, StringConversionConfiguration::Normal);
     RETURN_IF_EXCEPTION(throwScope, false);

Modified: trunk/Source/WebCore/css/CSSSelector.cpp (208255 => 208256)


--- trunk/Source/WebCore/css/CSSSelector.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/CSSSelector.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -640,11 +640,9 @@
             case CSSSelector::PseudoClassHost:
                 str.appendLiteral(":host");
                 break;
-#if ENABLE(CUSTOM_ELEMENTS)
             case CSSSelector::PseudoClassDefined:
                 str.appendLiteral(":defined");
                 break;
-#endif
             case CSSSelector::PseudoClassUnknown:
                 ASSERT_NOT_REACHED();
             }

Modified: trunk/Source/WebCore/css/CSSSelector.h (208255 => 208256)


--- trunk/Source/WebCore/css/CSSSelector.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/CSSSelector.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -167,9 +167,7 @@
             PseudoClassRole,
 #endif
             PseudoClassHost,
-#if ENABLE(CUSTOM_ELEMENTS)
             PseudoClassDefined,
-#endif
         };
 
         enum PseudoElementType {

Modified: trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp (208255 => 208256)


--- trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/PropertySetCSSStyleDeclaration.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -64,7 +64,6 @@
         if (m_mutationRecipients && m_mutationRecipients->isOldValueRequested())
             shouldReadOldValue = true;
 
-#if ENABLE(CUSTOM_ELEMENTS)
         if (UNLIKELY(element->isDefinedCustomElement())) {
             auto* reactionQueue = element->reactionQueue();
             if (reactionQueue && reactionQueue->observesStyleAttribute()) {
@@ -72,7 +71,6 @@
                 shouldReadOldValue = true;
             }
         }
-#endif
 
         if (shouldReadOldValue)
             m_oldValue = s_currentDecl->parentElement()->getAttribute(HTMLNames::styleAttr);
@@ -89,12 +87,10 @@
                 auto mutation = MutationRecord::createAttributes(*s_currentDecl->parentElement(), HTMLNames::styleAttr, m_oldValue);
                 m_mutationRecipients->enqueueMutationRecord(WTFMove(mutation));
             }
-#if ENABLE(CUSTOM_ELEMENTS)
             if (m_customElement) {
                 AtomicString newValue = m_customElement->getAttribute(HTMLNames::styleAttr);
                 CustomElementReactionQueue::enqueueAttributeChangedCallbackIfNeeded(*m_customElement, HTMLNames::styleAttr, m_oldValue, newValue);
             }
-#endif
         }
 
         s_shouldDeliver = false;
@@ -128,9 +124,7 @@
 
     std::unique_ptr<MutationObserverInterestGroup> m_mutationRecipients;
     AtomicString m_oldValue;
-#if ENABLE(CUSTOM_ELEMENTS)
     RefPtr<Element> m_customElement;
-#endif
 };
 
 unsigned StyleAttributeMutationScope::s_scopeCount = 0;

Modified: trunk/Source/WebCore/css/SelectorChecker.cpp (208255 => 208256)


--- trunk/Source/WebCore/css/SelectorChecker.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/SelectorChecker.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1054,10 +1054,8 @@
             specificity = CSSSelector::addSpecificities(specificity, hostSpecificity);
             return true;
         }
-#if ENABLE(CUSTOM_ELEMENTS)
         case CSSSelector::PseudoClassDefined:
             return isDefinedElement(element);
-#endif
         case CSSSelector::PseudoClassWindowInactive:
             return isWindowInactive(element);
 

Modified: trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h (208255 => 208256)


--- trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/SelectorCheckerTestFunctions.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -63,12 +63,10 @@
     return is<HTMLElement>(element) && downcast<HTMLElement>(element).canBeActuallyDisabled() && !element.isDisabledFormControl();
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
 ALWAYS_INLINE bool isDefinedElement(const Element& element)
 {
     return !element.isUndefinedCustomElement();
 }
-#endif
 
 ALWAYS_INLINE bool isMediaDocument(const Element& element)
 {

Modified: trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in (208255 => 208256)


--- trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/css/SelectorPseudoClassAndCompatibilityElementMap.in	2016-11-01 23:16:49 UTC (rev 208256)
@@ -12,6 +12,7 @@
 corner-present
 decrement
 default
+defined
 #if ENABLE(CSS_SELECTORS_LEVEL4)
 dir(
 #endif
@@ -77,6 +78,3 @@
 past
 #endif
 
-#if ENABLE(CUSTOM_ELEMENTS)
-defined
-#endif

Modified: trunk/Source/WebCore/cssjit/SelectorCompiler.cpp (208255 => 208256)


--- trunk/Source/WebCore/cssjit/SelectorCompiler.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/cssjit/SelectorCompiler.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -550,11 +550,9 @@
     case CSSSelector::PseudoClassEnabled:
         fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr(matchesEnabledPseudoClass));
         return FunctionType::SimpleSelectorChecker;
-#if ENABLE(CUSTOM_ELEMENTS)
     case CSSSelector::PseudoClassDefined:
         fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr(isDefinedElement));
         return FunctionType::SimpleSelectorChecker;
-#endif
     case CSSSelector::PseudoClassFocus:
         fragment.unoptimizedPseudoClasses.append(JSC::FunctionPtr(SelectorChecker::matchesFocusPseudoClass));
         return FunctionType::SimpleSelectorChecker;

Modified: trunk/Source/WebCore/dom/CustomElementReactionQueue.cpp (208255 => 208256)


--- trunk/Source/WebCore/dom/CustomElementReactionQueue.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/CustomElementReactionQueue.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -26,8 +26,6 @@
 #include "config.h"
 #include "CustomElementReactionQueue.h"
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include "CustomElementRegistry.h"
 #include "DOMWindow.h"
 #include "Document.h"
@@ -283,5 +281,3 @@
 }
 
 }
-
-#endif

Modified: trunk/Source/WebCore/dom/CustomElementReactionQueue.h (208255 => 208256)


--- trunk/Source/WebCore/dom/CustomElementReactionQueue.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/CustomElementReactionQueue.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -25,8 +25,6 @@
 
 #pragma once
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include <wtf/Forward.h>
 #include <wtf/Noncopyable.h>
 #include <wtf/Vector.h>
@@ -105,5 +103,3 @@
 };
 
 }
-
-#endif

Modified: trunk/Source/WebCore/dom/CustomElementRegistry.cpp (208255 => 208256)


--- trunk/Source/WebCore/dom/CustomElementRegistry.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/CustomElementRegistry.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -26,8 +26,6 @@
 #include "config.h"
 #include "CustomElementRegistry.h"
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include "CustomElementReactionQueue.h"
 #include "DOMWindow.h"
 #include "Document.h"
@@ -119,5 +117,3 @@
 }
 
 }
-
-#endif

Modified: trunk/Source/WebCore/dom/CustomElementRegistry.h (208255 => 208256)


--- trunk/Source/WebCore/dom/CustomElementRegistry.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/CustomElementRegistry.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -25,8 +25,6 @@
 
 #pragma once
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 #include "JSDOMPromise.h"
 #include "QualifiedName.h"
 #include <wtf/HashMap.h>
@@ -82,5 +80,3 @@
 };
 
 }
-
-#endif

Modified: trunk/Source/WebCore/dom/CustomElementRegistry.idl (208255 => 208256)


--- trunk/Source/WebCore/dom/CustomElementRegistry.idl	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/CustomElementRegistry.idl	2016-11-01 23:16:49 UTC (rev 208256)
@@ -24,7 +24,6 @@
 */
 
 [
-    Conditional=CUSTOM_ELEMENTS,
     EnabledAtRuntime=CustomElements,
     ImplementationLacksVTable,
     JSGenerateToNativeObject,

Modified: trunk/Source/WebCore/dom/Document.cpp (208255 => 208256)


--- trunk/Source/WebCore/dom/Document.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/Document.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -860,8 +860,6 @@
     styleScope().clearResolver();
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 static ALWAYS_INLINE RefPtr<HTMLElement> createUpgradeCandidateElement(Document& document, const QualifiedName& name)
 {
     if (!RuntimeEnabledFeatures::sharedFeatures().customElementsEnabled())
@@ -875,8 +873,6 @@
     return WTFMove(element);
 }
 
-#endif
-
 static ExceptionOr<Ref<Element>> createHTMLElementWithNameValidation(Document& document, const AtomicString& localName)
 {
     auto element = HTMLElementFactory::createKnownElement(localName, document);
@@ -883,7 +879,6 @@
     if (LIKELY(element))
         return Ref<Element> { element.releaseNonNull() };
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (auto* window = document.domWindow()) {
         auto* registry = window->customElementRegistry();
         if (UNLIKELY(registry)) {
@@ -891,7 +886,6 @@
                 return elementInterface->constructElementWithFallback(document, localName);
         }
     }
-#endif
 
     if (UNLIKELY(!Document::isValidName(localName)))
         return Exception { INVALID_CHARACTER_ERR };
@@ -898,10 +892,8 @@
 
     QualifiedName qualifiedName { nullAtom, localName, xhtmlNamespaceURI };
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (auto element = createUpgradeCandidateElement(document, qualifiedName))
         return Ref<Element> { element.releaseNonNull() };
-#endif
 
     return Ref<Element> { HTMLUnknownElement::create(qualifiedName, document) };
 }
@@ -1051,7 +1043,6 @@
 
 static Ref<HTMLElement> createFallbackHTMLElement(Document& document, const QualifiedName& name)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     if (auto* window = document.domWindow()) {
         auto* registry = window->customElementRegistry();
         if (UNLIKELY(registry)) {
@@ -1065,7 +1056,6 @@
     // FIXME: Should we also check the equality of prefix between the custom element and name?
     if (auto element = createUpgradeCandidateElement(document, name))
         return element.releaseNonNull();
-#endif
     return HTMLUnknownElement::create(name, document);
 }
 

Modified: trunk/Source/WebCore/dom/Element.cpp (208255 => 208256)


--- trunk/Source/WebCore/dom/Element.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/Element.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1333,10 +1333,8 @@
 
     document().incDOMTreeVersion();
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (UNLIKELY(isDefinedCustomElement()))
         CustomElementReactionQueue::enqueueAttributeChangedCallbackIfNeeded(*this, name, oldValue, newValue);
-#endif
 
     if (valueIsSameAsBefore)
         return;
@@ -1553,10 +1551,8 @@
             attributeChanged(classAttr, nullAtom, getAttribute(classAttr));
     }
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (UNLIKELY(isDefinedCustomElement()))
         CustomElementReactionQueue::enqueueAdoptedCallbackIfNeeded(*this, *oldDocument, document());
-#endif
 }
 
 bool Element::hasAttributes() const
@@ -1664,7 +1660,6 @@
             updateLabel(*newScope, nullAtom, attributeWithoutSynchronization(forAttr));
     }
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (becomeConnected) {
         if (UNLIKELY(isCustomElementUpgradeCandidate()))
             CustomElementReactionQueue::enqueueElementUpgradeIfDefined(*this);
@@ -1672,8 +1667,6 @@
             CustomElementReactionQueue::enqueueConnectedCallbackIfNeeded(*this);
     }
 
-#endif
-
     return InsertionDone;
 }
 
@@ -1721,10 +1714,8 @@
                 updateLabel(*oldScope, attributeWithoutSynchronization(forAttr), nullAtom);
         }
 
-#if ENABLE(CUSTOM_ELEMENTS)
         if (becomeDisconnected && UNLIKELY(isDefinedCustomElement()))
             CustomElementReactionQueue::enqueueDisconnectedCallbackIfNeeded(*this);
-#endif
     }
 
     if (!parentNode()) {
@@ -1874,8 +1865,6 @@
     return shadow;
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 void Element::setIsDefinedCustomElement(JSCustomElementInterface& elementInterface)
 {
     clearFlag(IsEditingTextOrUndefinedCustomElementFlag);
@@ -1930,8 +1919,6 @@
     return elementRareData()->customElementReactionQueue();
 }
 
-#endif
-
 const AtomicString& Element::shadowPseudoId() const
 {
     return pseudo();

Modified: trunk/Source/WebCore/dom/Element.h (208255 => 208256)


--- trunk/Source/WebCore/dom/Element.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/Element.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -278,13 +278,11 @@
     ShadowRoot* userAgentShadowRoot() const;
     WEBCORE_EXPORT ShadowRoot& ensureUserAgentShadowRoot();
 
-#if ENABLE(CUSTOM_ELEMENTS)
     void setIsDefinedCustomElement(JSCustomElementInterface&);
     void setIsFailedCustomElement(JSCustomElementInterface&);
     void setIsCustomElementUpgradeCandidate();
     void enqueueToUpgrade(JSCustomElementInterface&);
     CustomElementReactionQueue* reactionQueue() const;
-#endif
 
     // FIXME: this should not be virtual, do not override this.
     virtual const AtomicString& shadowPseudoId() const;

Modified: trunk/Source/WebCore/dom/ElementRareData.cpp (208255 => 208256)


--- trunk/Source/WebCore/dom/ElementRareData.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/ElementRareData.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -44,11 +44,7 @@
     RegionOversetState regionOversetState;
     LayoutSize sizeForResizing;
     IntPoint savedLayerScrollPosition;
-#if ENABLE(CUSTOM_ELEMENTS)
     void* pointers[8];
-#else
-    void* pointers[7];
-#endif
 };
 
 static_assert(sizeof(ElementRareData) == sizeof(SameSizeAsElementRareData), "ElementRareData should stay small");

Modified: trunk/Source/WebCore/dom/ElementRareData.h (208255 => 208256)


--- trunk/Source/WebCore/dom/ElementRareData.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/ElementRareData.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -94,10 +94,8 @@
     ShadowRoot* shadowRoot() const { return m_shadowRoot.get(); }
     void setShadowRoot(RefPtr<ShadowRoot>&& shadowRoot) { m_shadowRoot = WTFMove(shadowRoot); }
 
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementReactionQueue* customElementReactionQueue() { return m_customElementReactionQueue.get(); }
     void setCustomElementReactionQueue(std::unique_ptr<CustomElementReactionQueue>&& queue) { m_customElementReactionQueue = WTFMove(queue); }
-#endif
 
     NamedNodeMap* attributeMap() const { return m_attributeMap.get(); }
     void setAttributeMap(std::unique_ptr<NamedNodeMap> attributeMap) { m_attributeMap = WTFMove(attributeMap); }
@@ -155,9 +153,7 @@
     std::unique_ptr<DatasetDOMStringMap> m_dataset;
     std::unique_ptr<DOMTokenList> m_classList;
     RefPtr<ShadowRoot> m_shadowRoot;
-#if ENABLE(CUSTOM_ELEMENTS)
     std::unique_ptr<CustomElementReactionQueue> m_customElementReactionQueue;
-#endif
     std::unique_ptr<NamedNodeMap> m_attributeMap;
 
     RefPtr<PseudoElement> m_beforePseudoElement;

Modified: trunk/Source/WebCore/dom/Node.h (208255 => 208256)


--- trunk/Source/WebCore/dom/Node.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/Node.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -249,12 +249,10 @@
     HTMLSlotElement* assignedSlot() const;
     HTMLSlotElement* assignedSlotForBindings() const;
 
-#if ENABLE(CUSTOM_ELEMENTS)
     bool isUndefinedCustomElement() const { return isElementNode() && getFlag(IsEditingTextOrUndefinedCustomElementFlag); }
     bool isCustomElementUpgradeCandidate() const { return getFlag(IsCustomElement) && getFlag(IsEditingTextOrUndefinedCustomElementFlag); }
     bool isDefinedCustomElement() const { return getFlag(IsCustomElement) && !getFlag(IsEditingTextOrUndefinedCustomElementFlag); }
     bool isFailedCustomElement() const { return isElementNode() && !getFlag(IsCustomElement) && getFlag(IsEditingTextOrUndefinedCustomElementFlag); }
-#endif
 
     // Returns null, a child of ShadowRoot, or a legacy shadow root.
     Node* nonBoundaryShadowTreeRootNode();

Modified: trunk/Source/WebCore/dom/make_names.pl (208255 => 208256)


--- trunk/Source/WebCore/dom/make_names.pl	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/dom/make_names.pl	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1324,10 +1324,8 @@
 
     if ($parameters{customElementInterfaceName}) {
         print F <<END
-#if ENABLE(CUSTOM_ELEMENTS)
     if (element->isCustomElementUpgradeCandidate())
         return createWrapper<$parameters{customElementInterfaceName}>(globalObject, WTFMove(element));
-#endif
 END
 ;
     }

Modified: trunk/Source/WebCore/html/HTMLElement.idl (208255 => 208256)


--- trunk/Source/WebCore/html/HTMLElement.idl	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/HTMLElement.idl	2016-11-01 23:16:49 UTC (rev 208256)
@@ -19,9 +19,7 @@
  */
 
 [
-#if defined(ENABLE_CUSTOM_ELEMENTS) && ENABLE_CUSTOM_ELEMENTS
     CustomConstructor(),
-#endif
     ExportMacro=WEBCORE_EXPORT,
     JSCustomPushEventHandlerScope,
     JSGenerateToNativeObject,

Modified: trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp (208255 => 208256)


--- trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/parser/HTMLConstructionSite.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -479,8 +479,6 @@
     m_openElements.push(HTMLStackItem::create(WTFMove(element), token));
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 JSCustomElementInterface* HTMLConstructionSite::insertHTMLElementOrFindCustomElementInterface(AtomicHTMLToken& token)
 {
     JSCustomElementInterface* elementInterface = nullptr;
@@ -499,8 +497,6 @@
     m_openElements.push(HTMLStackItem::create(WTFMove(element), localName, attributes));
 }
 
-#endif
-
 void HTMLConstructionSite::insertSelfClosingHTMLElement(AtomicHTMLToken& token)
 {
     ASSERT(token.type() == HTMLToken::StartTag);
@@ -658,7 +654,6 @@
     bool insideTemplateElement = !ownerDocument.frame();
     RefPtr<Element> element = HTMLElementFactory::createKnownElement(localName, ownerDocument, insideTemplateElement ? nullptr : form(), true);
     if (UNLIKELY(!element)) {
-#if ENABLE(CUSTOM_ELEMENTS)
         auto* window = ownerDocument.domWindow();
         if (customElementInterface && window) {
             auto* registry = window->customElementRegistry();
@@ -669,17 +664,12 @@
                 }
             }
         }
-#else
-        UNUSED_PARAM(customElementInterface);
-#endif
 
         QualifiedName qualifiedName(nullAtom, localName, xhtmlNamespaceURI);
-#if ENABLE(CUSTOM_ELEMENTS)
         if (window && Document::validateCustomElementName(localName) == CustomElementNameValidationStatus::Valid) {
             element = HTMLElement::create(qualifiedName, ownerDocument);
             element->setIsCustomElementUpgradeCandidate();
         } else
-#endif
             element = HTMLUnknownElement::create(qualifiedName, ownerDocument);
     }
     ASSERT(element);

Modified: trunk/Source/WebCore/html/parser/HTMLConstructionSite.h (208255 => 208256)


--- trunk/Source/WebCore/html/parser/HTMLConstructionSite.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/parser/HTMLConstructionSite.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -102,10 +102,8 @@
     void insertCommentOnDocument(AtomicHTMLToken&);
     void insertCommentOnHTMLHtmlElement(AtomicHTMLToken&);
     void insertHTMLElement(AtomicHTMLToken&);
-#if ENABLE(CUSTOM_ELEMENTS)
     JSCustomElementInterface* insertHTMLElementOrFindCustomElementInterface(AtomicHTMLToken&);
     void insertCustomElement(Ref<Element>&&, const AtomicString& localName, Vector<Attribute>&);
-#endif
     void insertSelfClosingHTMLElement(AtomicHTMLToken&);
     void insertFormattingElement(AtomicHTMLToken&);
     void insertHTMLHeadElement(AtomicHTMLToken&);

Modified: trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp (208255 => 208256)


--- trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/parser/HTMLDocumentParser.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -191,7 +191,6 @@
 {
     ASSERT(scriptingContentIsAllowed(parserContentPolicy()));
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (std::unique_ptr<CustomElementConstructionData> constructionData = m_treeBuilder->takeCustomElementConstructionData()) {
         ASSERT(!m_treeBuilder->hasParserBlockingScriptWork());
 
@@ -201,7 +200,6 @@
         m_treeBuilder->didCreateCustomOrCallbackElement(WTFMove(newElement), *constructionData);
         return;
     }
-#endif
 
     TextPosition scriptStartPosition = TextPosition::belowRangePosition();
     if (auto scriptElement = m_treeBuilder->takeScriptToProcess(scriptStartPosition)) {

Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp (208255 => 208256)


--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -53,8 +53,6 @@
 
 using namespace HTMLNames;
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 CustomElementConstructionData::CustomElementConstructionData(Ref<JSCustomElementInterface>&& customElementInterface, const AtomicString& name, const Vector<Attribute>& attributes)
     : elementInterface(WTFMove(customElementInterface))
     , name(name)
@@ -64,8 +62,6 @@
 CustomElementConstructionData::~CustomElementConstructionData()
 { }
 
-#endif
-
 namespace {
 
 inline bool isHTMLSpaceOrReplacementCharacter(UChar character)
@@ -869,21 +865,15 @@
 
 inline void HTMLTreeBuilder::insertGenericHTMLElement(AtomicHTMLToken& token)
 {
-#if ENABLE(CUSTOM_ELEMENTS)
     auto* elementInterface = m_tree.insertHTMLElementOrFindCustomElementInterface(token);
     if (UNLIKELY(elementInterface))
         m_customElementToConstruct = std::make_unique<CustomElementConstructionData>(*elementInterface, token.name(), token.attributes());
-#else
-    m_tree.insertHTMLElement(token);
-#endif
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
 void HTMLTreeBuilder::didCreateCustomOrCallbackElement(Ref<Element>&& element, CustomElementConstructionData& data)
 {
     m_tree.insertCustomElement(WTFMove(element), data.name, data.attributes);
 }
-#endif
 
 void HTMLTreeBuilder::processTemplateStartTag(AtomicHTMLToken& token)
 {

Modified: trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h (208255 => 208256)


--- trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/html/parser/HTMLTreeBuilder.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -36,7 +36,6 @@
 class JSCustomElementInterface;
 class HTMLDocumentParser;
 
-#if ENABLE(CUSTOM_ELEMENTS)
 struct CustomElementConstructionData {
     CustomElementConstructionData(Ref<JSCustomElementInterface>&&, const AtomicString& name, const Vector<Attribute>&);
     ~CustomElementConstructionData();
@@ -45,7 +44,6 @@
     AtomicString name;
     Vector<Attribute> attributes;
 };
-#endif
 
 class HTMLTreeBuilder {
     WTF_MAKE_FAST_ALLOCATED;
@@ -66,10 +64,8 @@
     // Must be called to take the parser-blocking script before calling the parser again.
     RefPtr<Element> takeScriptToProcess(TextPosition& scriptStartPosition);
 
-#if ENABLE(CUSTOM_ELEMENTS)
     std::unique_ptr<CustomElementConstructionData> takeCustomElementConstructionData() { return WTFMove(m_customElementToConstruct); }
     void didCreateCustomOrCallbackElement(Ref<Element>&&, CustomElementConstructionData&);
-#endif
 
     // Done, close any open tags, etc.
     void finished();
@@ -213,9 +209,7 @@
     RefPtr<Element> m_scriptToProcess; // <script> tag which needs processing before resuming the parser.
     TextPosition m_scriptToProcessStartPosition; // Starting line number of the script tag needing processing.
 
-#if ENABLE(CUSTOM_ELEMENTS)
     std::unique_ptr<CustomElementConstructionData> m_customElementToConstruct;
-#endif
 
     bool m_shouldSkipLeadingNewline { false };
 
@@ -251,12 +245,8 @@
 inline bool HTMLTreeBuilder::hasParserBlockingScriptWork() const
 {
     ASSERT(!m_destroyed);
-#if ENABLE(CUSTOM_ELEMENTS)
     ASSERT(!(m_scriptToProcess && m_customElementToConstruct));
     return m_scriptToProcess || m_customElementToConstruct;
-#else
-    return m_scriptToProcess;
-#endif
 }
 
 inline DocumentFragment* HTMLTreeBuilder::FragmentParsingContext::fragment() const

Modified: trunk/Source/WebCore/page/DOMWindow.cpp (208255 => 208256)


--- trunk/Source/WebCore/page/DOMWindow.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/page/DOMWindow.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -625,8 +625,6 @@
     return m_frame && m_frame->document()->domWindow() == this;
 }
 
-#if ENABLE(CUSTOM_ELEMENTS)
-
 CustomElementRegistry& DOMWindow::ensureCustomElementRegistry()
 {
     if (!m_customElementRegistry)
@@ -634,8 +632,6 @@
     return *m_customElementRegistry;
 }
 
-#endif
-
 #if ENABLE(ORIENTATION_EVENTS)
 
 int DOMWindow::orientation() const

Modified: trunk/Source/WebCore/page/DOMWindow.h (208255 => 208256)


--- trunk/Source/WebCore/page/DOMWindow.h	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/page/DOMWindow.h	2016-11-01 23:16:49 UTC (rev 208256)
@@ -291,10 +291,8 @@
     DOMApplicationCache* applicationCache() const;
     DOMApplicationCache* optionalApplicationCache() const { return m_applicationCache.get(); }
 
-#if ENABLE(CUSTOM_ELEMENTS)
     CustomElementRegistry* customElementRegistry() { return m_customElementRegistry.get(); }
     CustomElementRegistry& ensureCustomElementRegistry();
-#endif
 
 #if ENABLE(ORIENTATION_EVENTS)
     // This is the interface orientation in degrees. Some examples are:
@@ -410,9 +408,7 @@
     mutable RefPtr<Storage> m_localStorage;
     mutable RefPtr<DOMApplicationCache> m_applicationCache;
 
-#if ENABLE(CUSTOM_ELEMENTS)
     RefPtr<CustomElementRegistry> m_customElementRegistry;
-#endif
 
 #if ENABLE(WEB_TIMING)
     mutable RefPtr<Performance> m_performance;

Modified: trunk/Source/WebCore/page/DOMWindow.idl (208255 => 208256)


--- trunk/Source/WebCore/page/DOMWindow.idl	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebCore/page/DOMWindow.idl	2016-11-01 23:16:49 UTC (rev 208256)
@@ -170,7 +170,7 @@
     attribute DOMURLConstructor webkitURL; // FIXME: Deprecate this.
     attribute MutationObserverConstructor WebKitMutationObserver; // FIXME: Remove once we prove it is not needed for compatibility with legacy content.
 
-    [Conditional=CUSTOM_ELEMENTS, EnabledAtRuntime=CustomElements, ImplementedAs=ensureCustomElementRegistry] readonly attribute CustomElementRegistry customElements;
+    [EnabledAtRuntime=CustomElements, ImplementedAs=ensureCustomElementRegistry] readonly attribute CustomElementRegistry customElements;
 
     // Event handlers unique to Element and DOMWindow.
     // FIXME: Should these be exposed on Document as well (and therefore moved to GlobalEventHandlers.idl)?

Modified: trunk/Source/WebKit/mac/ChangeLog (208255 => 208256)


--- trunk/Source/WebKit/mac/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/mac/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,18 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * Configurations/FeatureDefines.xcconfig:
+        * WebView/WebPreferences.mm:
+        (+[WebPreferences initialize]):
+        * WebView/WebView.mm:
+        (-[WebView _preferencesChanged:]):
+
 2016-11-01  Eric Carlson  <eric.carl...@apple.com>
 
         [MediaStream] restrict media capture secure connections

Modified: trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig (208255 => 208256)


--- trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/mac/Configurations/FeatureDefines.xcconfig	2016-11-01 23:16:49 UTC (rev 208256)
@@ -206,8 +206,6 @@
 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
 
-ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-
 ENABLE_VARIATION_FONTS[sdk=embedded*] = $(ENABLE_VARIATION_FONTS_$(PLATFORM_NAME));
 ENABLE_VARIATION_FONTS_iphoneos = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_iphonesimulator = ENABLE_VARIATION_FONTS;
@@ -220,4 +218,4 @@
 ENABLE_VARIATION_FONTS_IF_NOT_NO = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_IF_NOT_YES = ;
 
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFU
 NCTION_SYNTAX) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SES
 SION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_R
 EPLAY) $(ENABLE_WEB_RTC) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
+FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_ES6
 _MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE
 ) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_RTC) $(
 ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);

Modified: trunk/Source/WebKit/mac/WebView/WebPreferences.mm (208255 => 208256)


--- trunk/Source/WebKit/mac/WebView/WebPreferences.mm	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/mac/WebView/WebPreferences.mm	2016-11-01 23:16:49 UTC (rev 208256)
@@ -609,9 +609,7 @@
         [NSNumber numberWithBool:YES], WebKitMediaCaptureRequiresSecureConnectionPreferenceKey,
 #endif
         [NSNumber numberWithBool:YES], WebKitShadowDOMEnabledPreferenceKey,
-#if ENABLE(CUSTOM_ELEMENTS)
-        [NSNumber numberWithBool:NO], WebKitCustomElementsEnabledPreferenceKey,
-#endif
+        [NSNumber numberWithBool:YES], WebKitCustomElementsEnabledPreferenceKey,
 #if ENABLE(WEBGL2)
         [NSNumber numberWithBool:NO], WebKitWebGL2EnabledPreferenceKey,
 #endif

Modified: trunk/Source/WebKit/mac/WebView/WebView.mm (208255 => 208256)


--- trunk/Source/WebKit/mac/WebView/WebView.mm	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/mac/WebView/WebView.mm	2016-11-01 23:16:49 UTC (rev 208256)
@@ -2546,9 +2546,7 @@
 
     RuntimeEnabledFeatures::sharedFeatures().setModernMediaControlsEnabled([preferences modernMediaControlsEnabled]);
 
-#if ENABLE(CUSTOM_ELEMENTS)
     RuntimeEnabledFeatures::sharedFeatures().setCustomElementsEnabled([preferences customElementsEnabled]);
-#endif
 
 #if ENABLE(FETCH_API)
     RuntimeEnabledFeatures::sharedFeatures().setFetchAPIEnabled([preferences fetchAPIEnabled]);

Modified: trunk/Source/WebKit/win/ChangeLog (208255 => 208256)


--- trunk/Source/WebKit/win/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/win/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,15 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * WebView.cpp:
+        (WebView::notifyPreferencesChanged):
+
 2016-10-29  Filip Pizlo  <fpi...@apple.com>
 
         JSC should support SharedArrayBuffer

Modified: trunk/Source/WebKit/win/WebView.cpp (208255 => 208256)


--- trunk/Source/WebKit/win/WebView.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit/win/WebView.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -5243,12 +5243,10 @@
         return hr;
     RuntimeEnabledFeatures::sharedFeatures().setShadowDOMEnabled(!!enabled);
 
-#if ENABLE(CUSTOM_ELEMENTS)
     hr = prefsPrivate->customElementsEnabled(&enabled);
     if (FAILED(hr))
         return hr;
     RuntimeEnabledFeatures::sharedFeatures().setCustomElementsEnabled(!!enabled);
-#endif
 
     hr = prefsPrivate->modernMediaControlsEnabled(&enabled);
     if (FAILED(hr))

Modified: trunk/Source/WebKit2/ChangeLog (208255 => 208256)


--- trunk/Source/WebKit2/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit2/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,18 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * Configurations/FeatureDefines.xcconfig:
+        * WebProcess/InjectedBundle/InjectedBundle.cpp:
+        (WebKit::InjectedBundle::overrideBoolPreferenceForTestRunner):
+        * WebProcess/WebPage/WebPage.cpp:
+        (WebKit::WebPage::updatePreferences):
+
 2016-11-01  Eric Carlson  <eric.carl...@apple.com>
 
         [MediaStream] restrict media capture secure connections

Modified: trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig (208255 => 208256)


--- trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit2/Configurations/FeatureDefines.xcconfig	2016-11-01 23:16:49 UTC (rev 208256)
@@ -206,8 +206,6 @@
 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
 
-ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-
 ENABLE_VARIATION_FONTS[sdk=embedded*] = $(ENABLE_VARIATION_FONTS_$(PLATFORM_NAME));
 ENABLE_VARIATION_FONTS_iphoneos = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_iphonesimulator = ENABLE_VARIATION_FONTS;
@@ -220,4 +218,4 @@
 ENABLE_VARIATION_FONTS_IF_NOT_NO = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_IF_NOT_YES = ;
 
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFU
 NCTION_SYNTAX) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SES
 SION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_R
 EPLAY) $(ENABLE_WEB_RTC) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
+FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_ES6
 _MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE
 ) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_RTC) $(
 ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);

Modified: trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp (208255 => 208256)


--- trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit2/WebProcess/InjectedBundle/InjectedBundle.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -202,10 +202,8 @@
         RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled(enabled);
 #endif
 
-#if ENABLE(CUSTOM_ELEMENTS)
     if (preference == "WebKitCustomElementsEnabled")
         RuntimeEnabledFeatures::sharedFeatures().setCustomElementsEnabled(enabled);
-#endif
 
     if (preference == "WebKitInteractiveFormValidationEnabled")
         RuntimeEnabledFeatures::sharedFeatures().setInteractiveFormValidationEnabled(enabled);

Modified: trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp (208255 => 208256)


--- trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/WebKit2/WebProcess/WebPage/WebPage.cpp	2016-11-01 23:16:49 UTC (rev 208256)
@@ -3213,9 +3213,7 @@
     RuntimeEnabledFeatures::sharedFeatures().setCSSGridLayoutEnabled(store.getBoolValueForKey(WebPreferencesKey::cssGridLayoutEnabledKey()));
 #endif
 
-#if ENABLE(CUSTOM_ELEMENTS)
     RuntimeEnabledFeatures::sharedFeatures().setCustomElementsEnabled(store.getBoolValueForKey(WebPreferencesKey::customElementsEnabledKey()));
-#endif
 
 #if ENABLE(WEBGL2)
     RuntimeEnabledFeatures::sharedFeatures().setWebGL2Enabled(store.getBoolValueForKey(WebPreferencesKey::webGL2EnabledKey()));

Modified: trunk/Source/cmake/OptionsEfl.cmake (208255 => 208256)


--- trunk/Source/cmake/OptionsEfl.cmake	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/cmake/OptionsEfl.cmake	2016-11-01 23:16:49 UTC (rev 208256)
@@ -88,7 +88,6 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_REGIONS PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_SCROLL_SNAP PUBLIC OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_SELECTORS_LEVEL4 PUBLIC ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CUSTOM_ELEMENTS PRIVATE OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CUSTOM_SCHEME_HANDLER PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATABASE_PROCESS PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATALIST_ELEMENT PUBLIC ON)

Modified: trunk/Source/cmake/OptionsWin.cmake (208255 => 208256)


--- trunk/Source/cmake/OptionsWin.cmake	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/cmake/OptionsWin.cmake	2016-11-01 23:16:49 UTC (rev 208256)
@@ -18,7 +18,6 @@
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_REGIONS PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CSS_SELECTORS_LEVEL4 PUBLIC ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CURSOR_VISIBILITY PUBLIC ON)
-WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CUSTOM_ELEMENTS PRIVATE ON)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_CUSTOM_SCHEME_HANDLER PUBLIC OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATALIST_ELEMENT PUBLIC OFF)
 WEBKIT_OPTION_DEFAULT_PORT_VALUE(ENABLE_DATA_TRANSFER_ITEMS PUBLIC OFF)

Modified: trunk/Source/cmake/WebKitFeatures.cmake (208255 => 208256)


--- trunk/Source/cmake/WebKitFeatures.cmake	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Source/cmake/WebKitFeatures.cmake	2016-11-01 23:16:49 UTC (rev 208256)
@@ -95,7 +95,6 @@
     WEBKIT_OPTION_DEFINE(ENABLE_CSS_SCROLL_SNAP "Toggle CSS snap scroll support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_CSS_SELECTORS_LEVEL4 "Toggle CSS Selectors Level 4 support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_CURSOR_VISIBILITY "Toggle cursor visibility support" PRIVATE OFF)
-    WEBKIT_OPTION_DEFINE(ENABLE_CUSTOM_ELEMENTS "Toggle custom elements support" PRIVATE ON)
     WEBKIT_OPTION_DEFINE(ENABLE_CUSTOM_SCHEME_HANDLER "Toggle Custom Scheme Handler support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_DASHBOARD_SUPPORT "Toggle dashboard support" PRIVATE OFF)
     WEBKIT_OPTION_DEFINE(ENABLE_DATABASE_PROCESS "Toggle database process support in WebKit2" PRIVATE OFF)

Modified: trunk/Tools/ChangeLog (208255 => 208256)


--- trunk/Tools/ChangeLog	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Tools/ChangeLog	2016-11-01 23:16:49 UTC (rev 208256)
@@ -1,3 +1,14 @@
+2016-11-01  Ryosuke Niwa  <rn...@webkit.org>
+
+        Remove CUSTOM_ELEMENTS build flag
+        https://bugs.webkit.org/show_bug.cgi?id=164267
+
+        Reviewed by Antti Koivisto.
+
+        Removed the build flag.
+
+        * TestWebKitAPI/Configurations/FeatureDefines.xcconfig:
+
 2016-11-01  Alex Christensen  <achristen...@webkit.org>
 
         Percent-encode non-ASCII code points in hosts of URLs with unrecognized schemes

Modified: trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig (208255 => 208256)


--- trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig	2016-11-01 22:58:49 UTC (rev 208255)
+++ trunk/Tools/TestWebKitAPI/Configurations/FeatureDefines.xcconfig	2016-11-01 23:16:49 UTC (rev 208256)
@@ -206,8 +206,6 @@
 ENABLE_FTL_JIT[sdk=macosx*] = ENABLE_FTL_JIT;
 ENABLE_FTL_JIT[sdk=iphoneos*] = ENABLE_FTL_JIT;
 
-ENABLE_CUSTOM_ELEMENTS = ENABLE_CUSTOM_ELEMENTS;
-
 ENABLE_VARIATION_FONTS[sdk=embedded*] = $(ENABLE_VARIATION_FONTS_$(PLATFORM_NAME));
 ENABLE_VARIATION_FONTS_iphoneos = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_iphonesimulator = ENABLE_VARIATION_FONTS;
@@ -220,4 +218,4 @@
 ENABLE_VARIATION_FONTS_IF_NOT_NO = ENABLE_VARIATION_FONTS;
 ENABLE_VARIATION_FONTS_IF_NOT_YES = ;
 
-FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_ELEMENTS) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFU
 NCTION_SYNTAX) $(ENABLE_ES6_MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SES
 SION) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_R
 EPLAY) $(ENABLE_WEB_RTC) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
+FEATURE_DEFINES = $(ENABLE_3D_TRANSFORMS) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_ACCELERATED_OVERFLOW_SCROLLING) $(ENABLE_APPLE_PAY) $(ENABLE_ATTACHMENT_ELEMENT) $(ENABLE_AVF_CAPTIONS) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CONTENT_FILTERING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_ANIMATIONS_LEVEL_2) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_GRID_LAYOUT) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SCROLL_SNAP) $(ENABLE_CSS_SELECTORS_LEVEL4) $(ENABLE_CSS_TRAILING_WORD) $(ENABLE_CSS3_TEXT) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DATACUE_VALUE) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ES2017_ASYNCFUNCTION_SYNTAX) $(ENABLE_ES6
 _MODULES) $(ENABLE_FETCH_API) $(ENABLE_FILTERS_LEVEL_2) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FTL_JIT) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD_DEPRECATED) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_ICONDATABASE) $(ENABLE_INDEXED_DATABASE_IN_WORKERS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_TYPE_COLOR_POPOVER) $(ENABLE_INPUT_TYPE_COLOR) $(ENABLE_INPUT_TYPE_DATE) $(ENABLE_INPUT_TYPE_DATETIME_INCOMPLETE) $(ENABLE_INPUT_TYPE_DATETIMELOCAL) $(ENABLE_INPUT_TYPE_MONTH) $(ENABLE_INPUT_TYPE_TIME) $(ENABLE_INPUT_TYPE_WEEK) $(ENABLE_INTERSECTION_OBSERVER) $(ENABLE_INTL) $(ENABLE_IOS_GESTURE_EVENTS) $(ENABLE_IOS_TOUCH_EVENTS) $(ENABLE_JIT) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_ENCRYPTED_MEDIA) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LETTERPRESS) $(ENABLE_LINK_PREFETCH) $(ENABLE_MAC_GESTURE_EVENTS) $(ENABLE_MATHML) $(ENABLE_MEDIA_CAPTURE) $(ENABLE_MEDIA_CONTROLS_SCRIPT) $(ENABLE_MEDIA_SESSION) $(ENABLE_MEDIA_SOURCE
 ) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_MEDIA_STREAM) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NAVIGATOR_HWCONCURRENCY) $(ENABLE_NOTIFICATIONS) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_POINTER_LOCK) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_READABLE_STREAM_API) $(ENABLE_REMOTE_INSPECTOR) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_REQUEST_AUTOCOMPLETE) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_RESOURCE_USAGE) $(ENABLE_RUBBER_BANDING) $(ENABLE_SERVICE_CONTROLS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SUBTLE_CRYPTO) $(ENABLE_SVG_FONTS) $(ENABLE_TELEPHONE_NUMBER_DETECTION) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_TOUCH_EVENTS) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VARIATION_FONTS) $(ENABLE_VIDEO_PRESENTATION_MODE) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIDEO) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEB_ANIMATIONS) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_REPLAY) $(ENABLE_WEB_RTC) $(
 ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WEBASSEMBLY) $(ENABLE_WEBGL) $(ENABLE_WEBGL2) $(ENABLE_WIRELESS_PLAYBACK_TARGET) $(ENABLE_WRITABLE_STREAM_API) $(ENABLE_XSLT);
_______________________________________________
webkit-changes mailing list
webkit-changes@lists.webkit.org
https://lists.webkit.org/mailman/listinfo/webkit-changes

Reply via email to