Changeset 154835 in webkit
- Timestamp:
- Aug 29, 2013 1:06:33 PM (11 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 5 deleted
- 29 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/CMakeLists.txt
r154809 r154835 430 430 html/HTMLDataListElement.idl 431 431 html/HTMLDetailsElement.idl 432 html/HTMLDialogElement.idl433 432 html/HTMLDirectoryElement.idl 434 433 html/HTMLDivElement.idl … … 1373 1372 html/HTMLDataListElement.cpp 1374 1373 html/HTMLDetailsElement.cpp 1375 html/HTMLDialogElement.cpp1376 1374 html/HTMLDirectoryElement.cpp 1377 1375 html/HTMLDivElement.cpp … … 2120 2118 rendering/RenderDeprecatedFlexibleBox.cpp 2121 2119 rendering/RenderDetailsMarker.cpp 2122 rendering/RenderDialog.cpp2123 2120 rendering/RenderEmbeddedObject.cpp 2124 2121 rendering/RenderFieldset.cpp -
trunk/Source/WebCore/ChangeLog
r154832 r154835 1 2013-08-29 Antti Koivisto <antti@apple.com> 2 3 Remove code behind ENABLE(DIALOG_ELEMENT) 4 https://bugs.webkit.org/show_bug.cgi?id=120467 5 6 Reviewed by Darin Adler. 7 8 It is incomplete and no one is building it. 9 10 * CMakeLists.txt: 11 * Configurations/FeatureDefines.xcconfig: 12 * DerivedSources.make: 13 * DerivedSources.pri: 14 * GNUmakefile.list.am: 15 * Target.pri: 16 * WebCore.exp.in: 17 * WebCore.xcodeproj/project.pbxproj: 18 * bindings/generic/RuntimeEnabledFeatures.cpp: 19 * bindings/generic/RuntimeEnabledFeatures.h: 20 * css/StyleResolver.cpp: 21 (WebCore::StyleResolver::adjustRenderStyle): 22 * css/html.css: 23 * dom/ContextFeatures.cpp: 24 * dom/ContextFeatures.h: 25 * dom/Document.cpp: 26 * dom/Document.h: 27 * dom/Element.cpp: 28 (WebCore::Element::removedFrom): 29 (WebCore::Element::setContainsFullScreenElementOnAncestorsCrossingFrameBoundaries): 30 * dom/Element.h: 31 (WebCore::Element::isDisabledFormControl): 32 * dom/ElementRareData.h: 33 (WebCore::ElementRareData::ElementRareData): 34 * html/HTMLDialogElement.cpp: Removed. 35 * html/HTMLDialogElement.h: Removed. 36 * html/HTMLDialogElement.idl: Removed. 37 * html/HTMLElementsAllInOne.cpp: 38 * html/HTMLTagNames.in: 39 * rendering/RenderDialog.cpp: Removed. 40 * rendering/RenderDialog.h: Removed. 41 * rendering/RenderLayer.cpp: 42 (WebCore::RenderLayer::rebuildZOrderLists): 43 (WebCore::RenderLayer::collectLayers): 44 * rendering/RenderLayer.h: 45 * rendering/RenderObject.h: 46 (WebCore::RenderObject::isCounter): 47 * rendering/RenderingAllInOne.cpp: 48 * testing/InternalSettings.cpp: 49 (WebCore::InternalSettings::Backup::Backup): 50 (WebCore::InternalSettings::Backup::restoreTo): 51 * testing/InternalSettings.h: 52 1 53 2013-08-29 Simon Fraser <simon.fraser@apple.com> 2 54 -
trunk/Source/WebCore/Configurations/FeatureDefines.xcconfig
r153772 r154835 70 70 ENABLE_DEVICE_ORIENTATION_iphoneos = ENABLE_DEVICE_ORIENTATION; 71 71 ENABLE_DEVICE_ORIENTATION_iphonesimulator = $(ENABLE_DEVICE_ORIENTATION_iphoneos); 72 ENABLE_DIALOG_ELEMENT = ;73 72 ENABLE_DIRECTORY_UPLOAD = ; 74 73 ENABLE_DOM4_EVENTS_CONSTRUCTOR = ENABLE_DOM4_EVENTS_CONSTRUCTOR; … … 188 187 ENABLE_FTL_JIT = ; 189 188 190 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHADERS) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS_VARIABLES) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DI ALOG_ELEMENT) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_DRAGGABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILE_SYSTEM) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_IFRAME_SEAMLESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(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_JAVASCRIPT_DEBUGGER) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PLUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHADOW_DOM) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_STYLE_SCOPED) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SVG) $(ENABLE_SVG_FONTS) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_THREADED_HTML_PARSER) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(FEATURE_DEFINES_$(PLATFORM_NAME));189 FEATURE_DEFINES = $(ENABLE_3D_RENDERING) $(ENABLE_ACCELERATED_2D_CANVAS) $(ENABLE_BLOB) $(ENABLE_CACHE_PARTITIONING) $(ENABLE_CANVAS_PATH) $(ENABLE_CANVAS_PROXY) $(ENABLE_CHANNEL_MESSAGING) $(ENABLE_CSP_NEXT) $(ENABLE_CSS_BOX_DECORATION_BREAK) $(ENABLE_CSS_DEVICE_ADAPTATION) $(ENABLE_CSS_EXCLUSIONS) $(ENABLE_CSS_FILTERS) $(ENABLE_CSS_IMAGE_ORIENTATION) $(ENABLE_CSS_IMAGE_RESOLUTION) $(ENABLE_CSS_REGIONS) $(ENABLE_CSS_SHADERS) $(ENABLE_CSS_COMPOSITING) $(ENABLE_CSS_SHAPES) $(ENABLE_CSS_STICKY_POSITION) $(ENABLE_CSS_TRANSFORMS_ANIMATIONS_UNPREFIXED) $(ENABLE_CSS_VARIABLES) $(ENABLE_CSS3_CONDITIONAL_RULES) $(ENABLE_CSS3_TEXT) $(ENABLE_CSS3_TEXT_LINE_BREAK) $(ENABLE_CURSOR_VISIBILITY) $(ENABLE_CUSTOM_SCHEME_HANDLER) $(ENABLE_DASHBOARD_SUPPORT) $(ENABLE_DATALIST_ELEMENT) $(ENABLE_DATA_TRANSFER_ITEMS) $(ENABLE_DETAILS_ELEMENT) $(ENABLE_DEVICE_ORIENTATION) $(ENABLE_DIRECTORY_UPLOAD) $(ENABLE_DOM4_EVENTS_CONSTRUCTOR) $(ENABLE_DRAGGABLE_REGION) $(ENABLE_ENCRYPTED_MEDIA) $(ENABLE_ENCRYPTED_MEDIA_V2) $(ENABLE_FILE_SYSTEM) $(ENABLE_FILTERS) $(ENABLE_FONT_LOAD_EVENTS) $(ENABLE_FULLSCREEN_API) $(ENABLE_GAMEPAD) $(ENABLE_GEOLOCATION) $(ENABLE_HIDDEN_PAGE_DOM_TIMER_THROTTLING) $(ENABLE_HIGH_DPI_CANVAS) $(ENABLE_ICONDATABASE) $(ENABLE_IFRAME_SEAMLESS) $(ENABLE_INDEXED_DATABASE) $(ENABLE_INDIE_UI) $(ENABLE_INPUT_SPEECH) $(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_JAVASCRIPT_DEBUGGER) $(ENABLE_LEGACY_CSS_VENDOR_PREFIXES) $(ENABLE_LEGACY_NOTIFICATIONS) $(ENABLE_LEGACY_VENDOR_PREFIXES) $(ENABLE_LEGACY_WEB_AUDIO) $(ENABLE_LINK_PREFETCH) $(ENABLE_MATHML) $(ENABLE_MEDIA_SOURCE) $(ENABLE_MEDIA_STATISTICS) $(ENABLE_METER_ELEMENT) $(ENABLE_MHTML) $(ENABLE_MOUSE_CURSOR_SCALE) $(ENABLE_NAVIGATOR_CONTENT_UTILS) $(ENABLE_NOTIFICATIONS) $(ENABLE_PAGE_VISIBILITY_API) $(ENABLE_PDFKIT_PLUGIN) $(ENABLE_PLUGIN_PROXY_FOR_VIDEO) $(ENABLE_PROGRESS_ELEMENT) $(ENABLE_PROXIMITY_EVENTS) $(ENABLE_PUBLIC_SUFFIX_LIST) $(ENABLE_QUOTA) $(ENABLE_REQUEST_ANIMATION_FRAME) $(ENABLE_RESOLUTION_MEDIA_QUERY) $(ENABLE_SCRIPTED_SPEECH) $(ENABLE_SHADOW_DOM) $(ENABLE_SHARED_WORKERS) $(ENABLE_SPEECH_SYNTHESIS) $(ENABLE_SQL_DATABASE) $(ENABLE_STYLE_SCOPED) $(ENABLE_SUBPIXEL_LAYOUT) $(ENABLE_SVG) $(ENABLE_SVG_FONTS) $(ENABLE_TEMPLATE_ELEMENT) $(ENABLE_TEXT_AUTOSIZING) $(ENABLE_THREADED_HTML_PARSER) $(ENABLE_TOUCH_ICON_LOADING) $(ENABLE_USERSELECT_ALL) $(ENABLE_VIDEO) $(ENABLE_VIDEO_TRACK) $(ENABLE_VIEW_MODE_CSS_MEDIA) $(ENABLE_WEBGL) $(ENABLE_WEB_AUDIO) $(ENABLE_WEB_SOCKETS) $(ENABLE_WEB_TIMING) $(ENABLE_WORKERS) $(ENABLE_XHR_TIMEOUT) $(ENABLE_XSLT) $(ENABLE_FTL_JIT) $(FEATURE_DEFINES_$(PLATFORM_NAME)); -
trunk/Source/WebCore/DerivedSources.make
r154651 r154835 313 313 $(WebCore)/html/HTMLDataListElement.idl \ 314 314 $(WebCore)/html/HTMLDetailsElement.idl \ 315 $(WebCore)/html/HTMLDialogElement.idl \316 315 $(WebCore)/html/HTMLDirectoryElement.idl \ 317 316 $(WebCore)/html/HTMLDivElement.idl \ -
trunk/Source/WebCore/DerivedSources.pri
r154651 r154835 353 353 $$PWD/html/HTMLDataListElement.idl \ 354 354 $$PWD/html/HTMLDetailsElement.idl \ 355 $$PWD/html/HTMLDialogElement.idl \356 355 $$PWD/html/HTMLDirectoryElement.idl \ 357 356 $$PWD/html/HTMLDivElement.idl \ -
trunk/Source/WebCore/GNUmakefile.list.am
r154809 r154835 4384 4384 Source/WebCore/rendering/RenderDetailsMarker.cpp \ 4385 4385 Source/WebCore/rendering/RenderDetailsMarker.h \ 4386 Source/WebCore/rendering/RenderDialog.h \4387 4386 Source/WebCore/rendering/RenderEmbeddedObject.cpp \ 4388 4387 Source/WebCore/rendering/RenderEmbeddedObject.h \ -
trunk/Source/WebCore/Target.pri
r154809 r154835 614 614 html/HTMLDListElement.cpp \ 615 615 html/HTMLDataListElement.cpp \ 616 html/HTMLDialogElement.cpp \617 616 html/HTMLDirectoryElement.cpp \ 618 617 html/HTMLDetailsElement.cpp \ … … 1165 1164 rendering/RenderDeprecatedFlexibleBox.cpp \ 1166 1165 rendering/RenderDetailsMarker.cpp \ 1167 rendering/RenderDialog.cpp \1168 1166 rendering/RenderEmbeddedObject.cpp \ 1169 1167 rendering/RenderFieldset.cpp \ … … 1814 1812 html/HTMLCanvasElement.h \ 1815 1813 html/HTMLCollection.h \ 1816 html/HTMLDialogElement.h \1817 1814 html/HTMLDirectoryElement.h \ 1818 1815 html/HTMLDetailsElement.h \ -
trunk/Source/WebCore/WebCore.exp.in
r154809 r154835 2442 2442 #endif 2443 2443 2444 #if ENABLE(DIALOG_ELEMENT)2445 __ZNK7WebCore11RenderLayer12isInTopLayerEv2446 #endif2447 2448 2444 #if ENABLE(DRAG_SUPPORT) 2449 2445 __ZN7WebCore12EventHandler17dragSourceEndedAtERKNS_18PlatformMouseEventENS_13DragOperationE … … 2686 2682 #endif 2687 2683 2688 #if ENABLE(DIALOG_ELEMENT)2689 __ZN7WebCore22RuntimeEnabledFeatures22isDialogElementEnabledE2690 #endif2691 2692 2684 #if ENABLE(SVG) 2693 2685 __ZN7WebCore8Document13svgExtensionsEv -
trunk/Source/WebCore/WebCore.xcodeproj/project.pbxproj
r154809 r154835 1863 1863 75793ED40D0CE85B007FC0AC /* DOMMessageEvent.mm in Sources */ = {isa = PBXBuildFile; fileRef = 75793ED10D0CE85B007FC0AC /* DOMMessageEvent.mm */; }; 1864 1864 75793ED50D0CE85B007FC0AC /* DOMMessageEventInternal.h in Headers */ = {isa = PBXBuildFile; fileRef = 75793ED20D0CE85B007FC0AC /* DOMMessageEventInternal.h */; }; 1865 762F1ED7159D960A007408F2 /* HTMLDialogElement.h in Headers */ = {isa = PBXBuildFile; fileRef = 762F1ED6159D960A007408F2 /* HTMLDialogElement.h */; };1866 1865 7633A72613D8B33A008501B6 /* LocaleToScriptMapping.h in Headers */ = {isa = PBXBuildFile; fileRef = 7633A72413D8B33A008501B6 /* LocaleToScriptMapping.h */; }; 1867 1866 7633A72713D8B33A008501B6 /* LocaleToScriptMappingDefault.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 7633A72513D8B33A008501B6 /* LocaleToScriptMappingDefault.cpp */; }; … … 1877 1876 76CDD2F61103DA6600680521 /* AccessibilityMenuListOption.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 76CDD2F01103DA6600680521 /* AccessibilityMenuListOption.cpp */; }; 1878 1877 76CDD2F71103DA6600680521 /* AccessibilityMenuListOption.h in Headers */ = {isa = PBXBuildFile; fileRef = 76CDD2F11103DA6600680521 /* AccessibilityMenuListOption.h */; }; 1879 76F2E2EC15F74CEF005FF664 /* RenderDialog.h in Headers */ = {isa = PBXBuildFile; fileRef = 76F2E2EA15F74CEF005FF664 /* RenderDialog.h */; };1880 1878 76FC2B0B12370DA0006A991A /* DOMTokenList.cpp in Sources */ = {isa = PBXBuildFile; fileRef = 76FC2B0812370DA0006A991A /* DOMTokenList.cpp */; }; 1881 1879 76FC2B0C12370DA0006A991A /* DOMTokenList.h in Headers */ = {isa = PBXBuildFile; fileRef = 76FC2B0912370DA0006A991A /* DOMTokenList.h */; }; … … 8253 8251 75793ED20D0CE85B007FC0AC /* DOMMessageEventInternal.h */ = {isa = PBXFileReference; fileEncoding = 30; lastKnownFileType = sourcecode.c.h; path = DOMMessageEventInternal.h; sourceTree = "<group>"; }; 8254 8252 758978EB127090D60076D5A9 /* SpeechInputResult.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = SpeechInputResult.h; sourceTree = "<group>"; }; 8255 762F1ED6159D960A007408F2 /* HTMLDialogElement.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = HTMLDialogElement.h; sourceTree = "<group>"; };8256 762F1ED8159D961A007408F2 /* HTMLDialogElement.idl */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = text; path = HTMLDialogElement.idl; sourceTree = "<group>"; };8257 8253 7633A72413D8B33A008501B6 /* LocaleToScriptMapping.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = LocaleToScriptMapping.h; sourceTree = "<group>"; }; 8258 8254 7633A72513D8B33A008501B6 /* LocaleToScriptMappingDefault.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = LocaleToScriptMappingDefault.cpp; sourceTree = "<group>"; }; … … 8268 8264 76CDD2F01103DA6600680521 /* AccessibilityMenuListOption.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = AccessibilityMenuListOption.cpp; sourceTree = "<group>"; }; 8269 8265 76CDD2F11103DA6600680521 /* AccessibilityMenuListOption.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = AccessibilityMenuListOption.h; sourceTree = "<group>"; }; 8270 76F2E2EA15F74CEF005FF664 /* RenderDialog.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = RenderDialog.h; sourceTree = "<group>"; };8271 8266 76FC2B0812370DA0006A991A /* DOMTokenList.cpp */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.cpp.cpp; path = DOMTokenList.cpp; sourceTree = "<group>"; }; 8272 8267 76FC2B0912370DA0006A991A /* DOMTokenList.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = DOMTokenList.h; sourceTree = "<group>"; }; … … 15744 15739 D359D787129CA2710006E5D2 /* HTMLDetailsElement.h */, 15745 15740 D359D788129CA2710006E5D2 /* HTMLDetailsElement.idl */, 15746 762F1ED6159D960A007408F2 /* HTMLDialogElement.h */,15747 762F1ED8159D961A007408F2 /* HTMLDialogElement.idl */,15748 15741 A8EA79ED0A1916DF00A8EF5F /* HTMLDirectoryElement.cpp */, 15749 15742 A8EA79EE0A1916DF00A8EF5F /* HTMLDirectoryElement.h */, … … 19922 19915 D302754512A5FE84004BD828 /* RenderDetailsMarker.cpp */, 19923 19916 D302754612A5FE84004BD828 /* RenderDetailsMarker.h */, 19924 76F2E2EA15F74CEF005FF664 /* RenderDialog.h */,19925 19917 0F5B7A5210F65D7A00376302 /* RenderEmbeddedObject.cpp */, 19926 19918 0F5B7A5310F65D7A00376302 /* RenderEmbeddedObject.h */, … … 21909 21901 F5C041DB0FFCA7CE00839D4A /* HTMLDataListElement.h in Headers */, 21910 21902 D359D78A129CA2710006E5D2 /* HTMLDetailsElement.h in Headers */, 21911 762F1ED7159D960A007408F2 /* HTMLDialogElement.h in Headers */,21912 21903 A8EA79FA0A1916DF00A8EF5F /* HTMLDirectoryElement.h in Headers */, 21913 21904 A8EA7CB70A192B9C00A8EF5F /* HTMLDivElement.h in Headers */, … … 23030 23021 BCEA486E097D93020094C9E4 /* RenderDeprecatedFlexibleBox.h in Headers */, 23031 23022 D302754A12A5FE84004BD828 /* RenderDetailsMarker.h in Headers */, 23032 76F2E2EC15F74CEF005FF664 /* RenderDialog.h in Headers */,23033 23023 A76E5F7F135E0DCF00A69837 /* RenderedDocumentMarker.h in Headers */, 23034 23024 9B32CDA913DF7FA900F34D13 /* RenderedPosition.h in Headers */, -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.cpp
r151832 r154835 228 228 #endif 229 229 230 #if ENABLE(DIALOG_ELEMENT)231 bool RuntimeEnabledFeatures::isDialogElementEnabled = false;232 #endif233 234 230 #if ENABLE(CSP_NEXT) 235 231 bool RuntimeEnabledFeatures::areExperimentalContentSecurityPolicyFeaturesEnabled = false; -
trunk/Source/WebCore/bindings/generic/RuntimeEnabledFeatures.h
r152083 r154835 277 277 #endif 278 278 279 #if ENABLE(DIALOG_ELEMENT)280 static bool dialogElementEnabled() { return isDialogElementEnabled; }281 static void setDialogElementEnabled(bool isEnabled) { isDialogElementEnabled = isEnabled; }282 #endif283 284 279 #if ENABLE(CSP_NEXT) 285 280 static bool experimentalContentSecurityPolicyFeaturesEnabled() { return areExperimentalContentSecurityPolicyFeaturesEnabled; } … … 399 394 #endif 400 395 401 #if ENABLE(DIALOG_ELEMENT)402 static bool isDialogElementEnabled;403 #endif404 405 396 #if ENABLE(CSP_NEXT) 406 397 static bool areExperimentalContentSecurityPolicyFeaturesEnabled; -
trunk/Source/WebCore/css/StyleResolver.cpp
r154809 r154835 1257 1257 style->setDisplay(equivalentBlockDisplay(style->display(), style->isFloating(), !document()->inQuirksMode())); 1258 1258 } 1259 1260 #if ENABLE(DIALOG_ELEMENT)1261 // Per the spec, position 'static' and 'relative' in the top layer compute to 'absolute'.1262 if (e && e->isInTopLayer() && (style->position() == StaticPosition || style->position() == RelativePosition)) {1263 style->setPosition(AbsolutePosition);1264 style->setDisplay(BLOCK);1265 }1266 #endif1267 1259 } 1268 1260 … … 1284 1276 || style->position() == StickyPosition 1285 1277 || (style->position() == FixedPosition && e && e->document()->page() && e->document()->page()->settings().fixedPositionCreatesStackingContext()) 1286 #if ENABLE(DIALOG_ELEMENT)1287 || (e && e->isInTopLayer())1288 #endif1289 1278 )) 1290 1279 style->setZIndex(0); -
trunk/Source/WebCore/css/html.css
r150876 r154835 147 147 } 148 148 149 #if defined(ENABLE_DIALOG_ELEMENT) && ENABLE_DIALOG_ELEMENT150 dialog:not([open]) { display: none; }151 dialog {152 position: absolute;153 left: 0; right: 0;154 margin: auto;155 border: solid;156 padding: 1em;157 background: white;158 color: black;159 }160 #endif161 162 149 /* heading elements */ 163 150 -
trunk/Source/WebCore/dom/ContextFeatures.cpp
r154023 r154835 49 49 static ContextFeatures* instance = ContextFeatures::create(ContextFeaturesClient::empty()).leakRef(); 50 50 return instance; 51 }52 53 bool ContextFeatures::dialogElementEnabled(Document* document)54 {55 #if ENABLE(DIALOG_ELEMENT)56 if (!document)57 return RuntimeEnabledFeatures::dialogElementEnabled();58 return document->contextFeatures()->isEnabled(document, DialogElement, RuntimeEnabledFeatures::dialogElementEnabled());59 #else60 UNUSED_PARAM(document);61 return false;62 #endif63 51 } 64 52 -
trunk/Source/WebCore/dom/ContextFeatures.h
r150652 r154835 40 40 public: 41 41 enum FeatureType { 42 DialogElement = 0,43 42 StyleScoped, 44 43 HTMLNotifications, … … 52 51 static PassRefPtr<ContextFeatures> create(ContextFeaturesClient*); 53 52 54 static bool dialogElementEnabled(Document*);55 53 static bool styleScopedEnabled(Document*); 56 54 static bool htmlNotificationsEnabled(Document*); -
trunk/Source/WebCore/dom/Document.cpp
r154766 r154835 5436 5436 #endif 5437 5437 5438 #if ENABLE(DIALOG_ELEMENT)5439 void Document::addToTopLayer(Element* element)5440 {5441 if (element->isInTopLayer())5442 return;5443 ASSERT(!m_topLayerElements.contains(element));5444 m_topLayerElements.append(element);5445 element->setIsInTopLayer(true);5446 }5447 5448 void Document::removeFromTopLayer(Element* element)5449 {5450 if (!element->isInTopLayer())5451 return;5452 size_t position = m_topLayerElements.find(element);5453 ASSERT(position != notFound);5454 m_topLayerElements.remove(position);5455 element->setIsInTopLayer(false);5456 }5457 #endif5458 5459 5438 #if ENABLE(POINTER_LOCK) 5460 5439 void Document::webkitExitPointerLock() -
trunk/Source/WebCore/dom/Document.h
r154766 r154835 1159 1159 Locale& getCachedLocale(const AtomicString& locale = nullAtom); 1160 1160 1161 #if ENABLE(DIALOG_ELEMENT)1162 void addToTopLayer(Element*);1163 void removeFromTopLayer(Element*);1164 const Vector<RefPtr<Element> >& topLayerElements() const { return m_topLayerElements; }1165 Element* activeModalDialog() const { return !m_topLayerElements.isEmpty() ? m_topLayerElements.last().get() : 0; }1166 #endif1167 1168 1161 #if ENABLE(TEMPLATE_ELEMENT) 1169 1162 const Document* templateDocument() const; … … 1483 1476 #endif 1484 1477 1485 #if ENABLE(DIALOG_ELEMENT)1486 Vector<RefPtr<Element> > m_topLayerElements;1487 #endif1488 1489 1478 int m_loadEventDelayCount; 1490 1479 Timer<Document> m_loadEventDelayTimer; -
trunk/Source/WebCore/dom/Element.cpp
r154806 r154835 1268 1268 } 1269 1269 1270 bool Element::isDisabledFormControl() const1271 {1272 #if ENABLE(DIALOG_ELEMENT)1273 // FIXME: disabled and inert are separate concepts in the spec, but now we treat them as the same.1274 // For example, an inert, non-disabled form control should not be grayed out.1275 if (isInert())1276 return true;1277 #endif1278 return false;1279 }1280 1281 #if ENABLE(DIALOG_ELEMENT)1282 bool Element::isInert() const1283 {1284 Element* dialog = document()->activeModalDialog();1285 return dialog && !containsIncludingShadowDOM(dialog) && !dialog->containsIncludingShadowDOM(this);1286 }1287 #endif1288 1289 1270 Node::InsertionNotificationRequest Element::insertedInto(ContainerNode* insertionPoint) 1290 1271 { … … 1341 1322 #endif 1342 1323 1343 #if ENABLE(DIALOG_ELEMENT)1344 document()->removeFromTopLayer(this);1345 #endif1346 1324 #if ENABLE(FULLSCREEN_API) 1347 1325 if (containsFullScreenElement()) … … 2611 2589 element->setContainsFullScreenElement(flag); 2612 2590 } 2613 #endif2614 2615 #if ENABLE(DIALOG_ELEMENT)2616 bool Element::isInTopLayer() const2617 {2618 return hasRareData() && elementRareData()->isInTopLayer();2619 }2620 2621 void Element::setIsInTopLayer(bool inTopLayer)2622 {2623 if (isInTopLayer() == inTopLayer)2624 return;2625 ensureElementRareData().setIsInTopLayer(inTopLayer);2626 2627 // We must ensure a reattach occurs so the renderer is inserted in the correct sibling order under RenderView according to its2628 // top layer position, or in its usual place if not in the top layer.2629 reattachIfAttached();2630 }2631 2591 #endif 2632 2592 -
trunk/Source/WebCore/dom/Element.h
r154806 r154835 476 476 // Used for disabled form elements; if true, prevents mouse events from being dispatched 477 477 // to event listeners, and prevents DOMActivate events from being sent at all. 478 virtual bool isDisabledFormControl() const; 479 480 #if ENABLE(DIALOG_ELEMENT) 481 bool isInert() const; 482 #endif 478 virtual bool isDisabledFormControl() const { return false; } 479 483 480 484 481 #if ENABLE(SVG) … … 505 502 #endif 506 503 507 #if ENABLE(DIALOG_ELEMENT)508 bool isInTopLayer() const;509 void setIsInTopLayer(bool);510 #endif511 512 504 #if ENABLE(POINTER_LOCK) 513 505 void webkitRequestPointerLock(); -
trunk/Source/WebCore/dom/ElementRareData.h
r154541 r154835 72 72 bool containsFullScreenElement() { return m_containsFullScreenElement; } 73 73 void setContainsFullScreenElement(bool value) { m_containsFullScreenElement = value; } 74 #endif75 76 #if ENABLE(DIALOG_ELEMENT)77 bool isInTopLayer() const { return m_isInTopLayer; }78 void setIsInTopLayer(bool value) { m_isInTopLayer = value; }79 74 #endif 80 75 … … 142 137 unsigned m_containsFullScreenElement : 1; 143 138 #endif 144 #if ENABLE(DIALOG_ELEMENT)145 unsigned m_isInTopLayer : 1;146 #endif147 139 #if ENABLE(SVG) 148 140 unsigned m_hasPendingResources : 1; … … 195 187 , m_containsFullScreenElement(false) 196 188 #endif 197 #if ENABLE(DIALOG_ELEMENT)198 , m_isInTopLayer(false)199 #endif200 189 #if ENABLE(SVG) 201 190 , m_hasPendingResources(false) -
trunk/Source/WebCore/html/HTMLElementsAllInOne.cpp
r149525 r154835 49 49 #include "HTMLDetailsElement.cpp" 50 50 #include "HTMLDListElement.cpp" 51 #include "HTMLDialogElement.cpp"52 51 #include "HTMLDirectoryElement.cpp" 53 52 #include "HTMLDivElement.cpp" -
trunk/Source/WebCore/html/HTMLTagNames.in
r152437 r154835 40 40 dfn interfaceName=HTMLElement 41 41 dir interfaceName=HTMLDirectoryElement 42 dialog conditional=DIALOG_ELEMENT, contextConditional=dialogElement43 42 div 44 43 dl interfaceName=HTMLDListElement -
trunk/Source/WebCore/rendering/RenderLayer.cpp
r154785 r154835 4381 4381 } 4382 4382 4383 #if ENABLE(DIALOG_ELEMENT)4384 bool RenderLayer::isInTopLayer() const4385 {4386 Node* node = renderer().node();4387 return node && node->isElementNode() && toElement(node)->isInTopLayer();4388 }4389 4390 bool RenderLayer::isInTopLayerSubtree() const4391 {4392 for (const RenderLayer* layer = this; layer; layer = layer->parent()) {4393 if (layer->isInTopLayer())4394 return true;4395 }4396 return false;4397 }4398 #endif4399 4400 4383 // Compute the z-offset of the point in the transformState. 4401 4384 // This is effectively projecting a ray normal to the plane of ancestor, finding where that … … 5683 5666 if (negZOrderList) 5684 5667 std::stable_sort(negZOrderList->begin(), negZOrderList->end(), compareZIndex); 5685 5686 #if ENABLE(DIALOG_ELEMENT)5687 // Append layers for top layer elements after normal layer collection, to ensure they are on top regardless of z-indexes.5688 // The renderers of top layer elements are children of the view, sorted in top layer stacking order.5689 if (isRootLayer()) {5690 RenderObject* view = renderer().view();5691 for (RenderObject* child = view->firstChild(); child; child = child->nextSibling()) {5692 Element* childElement = (child->node() && child->node()->isElementNode()) ? toElement(child->node()) : 0;5693 if (childElement && childElement->isInTopLayer()) {5694 RenderLayer* layer = toRenderLayerModelObject(child)->layer();5695 posZOrderList->append(layer);5696 }5697 }5698 }5699 #endif5700 5701 5668 } 5702 5669 … … 5722 5689 void RenderLayer::collectLayers(bool includeHiddenLayers, CollectLayersBehavior behavior, OwnPtr<Vector<RenderLayer*> >& posBuffer, OwnPtr<Vector<RenderLayer*> >& negBuffer) 5723 5690 { 5724 #if ENABLE(DIALOG_ELEMENT)5725 if (isInTopLayer())5726 return;5727 #endif5728 5729 5691 updateDescendantDependentFlags(); 5730 5692 -
trunk/Source/WebCore/rendering/RenderLayer.h
r154785 r154835 822 822 Node* enclosingElement() const; 823 823 824 #if ENABLE(DIALOG_ELEMENT)825 bool isInTopLayer() const;826 bool isInTopLayerSubtree() const;827 #endif828 829 824 #if USE(ACCELERATED_COMPOSITING) 830 825 enum ViewportConstrainedNotCompositedReason { -
trunk/Source/WebCore/rendering/RenderObject.h
r154580 r154835 324 324 virtual bool isBoxModelObject() const { return false; } 325 325 virtual bool isCounter() const { return false; } 326 #if ENABLE(DIALOG_ELEMENT)327 virtual bool isDialog() const { return false; }328 #endif329 326 virtual bool isQuote() const { return false; } 330 327 -
trunk/Source/WebCore/rendering/RenderingAllInOne.cpp
r144786 r154835 54 54 #include "RenderDeprecatedFlexibleBox.cpp" 55 55 #include "RenderDetailsMarker.cpp" 56 #include "RenderDialog.cpp"57 56 #include "RenderEmbeddedObject.cpp" 58 57 #include "RenderFieldset.cpp" -
trunk/Source/WebCore/testing/InternalSettings.cpp
r154658 r154835 84 84 #endif 85 85 , m_originalMediaTypeOverride(settings.mediaTypeOverride()) 86 #if ENABLE(DIALOG_ELEMENT)87 , m_originalDialogElementEnabled(RuntimeEnabledFeatures::dialogElementEnabled())88 #endif89 86 , m_originalCanvasUsesAcceleratedDrawing(settings.canvasUsesAcceleratedDrawing()) 90 87 , m_originalMockScrollbarsEnabled(settings.mockScrollbarsEnabled()) … … 122 119 #endif 123 120 settings.setMediaTypeOverride(m_originalMediaTypeOverride); 124 #if ENABLE(DIALOG_ELEMENT)125 RuntimeEnabledFeatures::setDialogElementEnabled(m_originalDialogElementEnabled);126 #endif127 121 settings.setCanvasUsesAcceleratedDrawing(m_originalCanvasUsesAcceleratedDrawing); 128 122 settings.setMockScrollbarsEnabled(m_originalMockScrollbarsEnabled); … … 391 385 } 392 386 393 void InternalSettings::setDialogElementEnabled(bool enabled, ExceptionCode& ec)394 {395 UNUSED_PARAM(ec);396 #if ENABLE(DIALOG_ELEMENT)397 RuntimeEnabledFeatures::setDialogElementEnabled(enabled);398 #else399 UNUSED_PARAM(enabled);400 #endif401 }402 403 387 void InternalSettings::setShouldDisplayTrackKind(const String& kind, bool enabled, ExceptionCode& ec) 404 388 { -
trunk/Source/WebCore/testing/InternalSettings.h
r153927 r154835 68 68 #endif 69 69 String m_originalMediaTypeOverride; 70 #if ENABLE(DIALOG_ELEMENT)71 bool m_originalDialogElementEnabled;72 #endif73 70 bool m_originalCanvasUsesAcceleratedDrawing; 74 71 bool m_originalMockScrollbarsEnabled; … … 120 117 void setCanStartMedia(bool, ExceptionCode&); 121 118 void setEditingBehavior(const String&, ExceptionCode&); 122 void setDialogElementEnabled(bool, ExceptionCode&);123 119 void setShouldDisplayTrackKind(const String& kind, bool enabled, ExceptionCode&); 124 120 bool shouldDisplayTrackKind(const String& kind, ExceptionCode&); -
trunk/Source/WebCore/testing/InternalSettings.idl
r151336 r154835 50 50 [RaisesException] void setCanStartMedia(boolean enabled); 51 51 [RaisesException] void setEditingBehavior(DOMString behavior); 52 [RaisesException] void setDialogElementEnabled(boolean enabled);53 52 void setLangAttributeAwareFormControlUIEnabled(boolean enabled); 54 53
Note: See TracChangeset
for help on using the changeset viewer.