-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Remove menuitem element and some leftover touchbar code
https://bugs.webkit.org/show_bug.cgi?id=260428 rdar://114132124 Reviewed by Wenson Hsieh. This code does not do anything and as such it is better to remove it to ease ongoing maintenance. This deprecates and no-ops WKPreferencesSetMenuItemElementEnabled and WKPreferencesGetMenuItemElementEnabled in order to preserve binary compatibility. Due to file removal a couple unified build fixes were needed. Those are annotated inline below. * LayoutTests/fast/html/menuitem-element-expected.txt: Removed. * LayoutTests/fast/html/menuitem-element.html: Removed. * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: * Source/WebCore/CMakeLists.txt: * Source/WebCore/DerivedSources-input.xcfilelist: * Source/WebCore/DerivedSources-output.xcfilelist: * Source/WebCore/DerivedSources.make: * Source/WebCore/Headers.cmake: * Source/WebCore/Sources.txt: * Source/WebCore/WebCore.xcodeproj/project.pbxproj: * Source/WebCore/bindings/js/WebCoreBuiltinNames.h: * Source/WebCore/html/HTMLMenuElement.cpp: (WebCore::HTMLMenuElement::insertedIntoAncestor): Deleted. (WebCore::HTMLMenuElement::removedFromAncestor): Deleted. (WebCore::HTMLMenuElement::attributeChanged): Deleted. * Source/WebCore/html/HTMLMenuElement.h: * Source/WebCore/html/HTMLMenuItemElement.cpp: Removed. * Source/WebCore/html/HTMLMenuItemElement.h: Removed. * Source/WebCore/html/HTMLMenuItemElement.idl: Removed. * Source/WebCore/html/HTMLTagNames.in: * Source/WebCore/page/ChromeClient.h: (WebCore::ChromeClient::didInsertMenuElement): Deleted. (WebCore::ChromeClient::didRemoveMenuElement): Deleted. (WebCore::ChromeClient::didInsertMenuItemElement): Deleted. (WebCore::ChromeClient::didRemoveMenuItemElement): Deleted. * Source/WebKit/DerivedSources-input.xcfilelist: * Source/WebKit/DerivedSources.make: * Source/WebKit/Shared/RemoteLayerTree/RemoteScrollingCoordinatorTransaction.h: Unified build fix. * Source/WebKit/Shared/TouchBarMenuData.cpp: Removed. * Source/WebKit/Shared/TouchBarMenuData.h: Removed. * Source/WebKit/Shared/TouchBarMenuItemData.cpp: Removed. * Source/WebKit/Shared/TouchBarMenuItemData.h: Removed. * Source/WebKit/Shared/TouchBarMenuItemData.serialization.in: Removed. * Source/WebKit/Sources.txt: * Source/WebKit/UIProcess/API/C/WKPreferences.cpp: (WKPreferencesSetMenuItemElementEnabled): Deleted. (WKPreferencesGetMenuItemElementEnabled): Deleted. * Source/WebKit/UIProcess/API/C/WKPreferencesRefPrivate.h: * Source/WebKit/UIProcess/WebPageProxy.cpp: (WebKit::WebPageProxy::touchBarMenuDataChanged): Deleted. (WebKit::WebPageProxy::touchBarMenuItemDataAdded): Deleted. (WebKit::WebPageProxy::touchBarMenuItemDataRemoved): Deleted. * Source/WebKit/UIProcess/WebPageProxy.h: * Source/WebKit/UIProcess/WebPageProxy.messages.in: * Source/WebKit/UIProcess/WebPageProxyInternals.h: * Source/WebKit/WebKit.xcodeproj/project.pbxproj: * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.cpp: (WebKit::WebChromeClient::didInsertMenuElement): Deleted. (WebKit::WebChromeClient::didRemoveMenuElement): Deleted. (WebKit::WebChromeClient::didInsertMenuItemElement): Deleted. (WebKit::WebChromeClient::didRemoveMenuItemElement): Deleted. * Source/WebKit/WebProcess/WebCoreSupport/WebChromeClient.h: * Source/WebKit/WebProcess/WebPage/WebPage.cpp: (WebKit::WebPage::didInsertMenuElement): Deleted. (WebKit::WebPage::didRemoveMenuElement): Deleted. (WebKit::WebPage::didInsertMenuItemElement): Deleted. (WebKit::WebPage::didRemoveMenuItemElement): Deleted. (WebKit::WebPage::sendTouchBarMenuDataRemovedUpdate): Deleted. (WebKit::WebPage::sendTouchBarMenuDataAddedUpdate): Deleted. (WebKit::WebPage::sendTouchBarMenuItemDataAddedUpdate): Deleted. (WebKit::WebPage::sendTouchBarMenuItemDataRemovedUpdate): Deleted. * Source/WebKit/WebProcess/WebPage/WebPage.h: Includes unified build fix. * Source/WebKitLegacy/mac/WebView/WebPreferenceKeysPrivate.h: * Source/WebKitLegacy/mac/WebView/WebPreferences.mm: (-[WebPreferences menuItemElementEnabled]): Deleted. (-[WebPreferences setMenuItemElementEnabled:]): Deleted. * Source/WebKitLegacy/mac/WebView/WebPreferencesPrivate.h: Canonical link: https://commits.webkit.org/267140@main
- Loading branch information
Showing
41 changed files
with
6 additions
and
787 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.