-
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.
Make UnifiedPDFEnabled setting work on iOS
https://bugs.webkit.org/show_bug.cgi?id=264341 rdar://118062175 Reviewed by Richard Robinson. * Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml: Don't show the Unified PDF preference if the compile-time flag isn't enabled. * Source/WebKit/UIProcess/Cocoa/WKWebViewContentProviderRegistry.mm: (-[WKWebViewContentProviderRegistry initWithConfiguration:]): Don't register WKPDFView as a custom content provider when Unified PDF is enabled. * Source/WebCore/rendering/RenderLayerBacking.h: * Source/WebCore/plugins/PluginViewBase.h: (WebCore::PluginViewBase::willProvidePluginLayer const): Deleted. (WebCore::PluginViewBase::attachPluginLayer): Deleted. (WebCore::PluginViewBase::detachPluginLayer): Deleted. * Source/WebCore/rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::requiresAcceleratedCompositing const): * Source/WebCore/rendering/RenderLayerBacking.cpp: (WebCore::RenderLayerBacking::updateConfiguration): (WebCore::RenderLayerBacking::layerWillBeDestroyed): Deleted. * Source/WebKitLegacy/mac/WebCoreSupport/WebFrameLoaderClient.mm: (WebFrameLoaderClient::createPlugin): (PluginWidgetIOS::PluginWidgetIOS): Deleted. (PluginWidgetIOS::platformLayer const): Deleted. (PluginWidgetIOS::willProvidePluginLayer const): Deleted. (PluginWidgetIOS::attachPluginLayer): Deleted. (PluginWidgetIOS::detachPluginLayer): Deleted. Remove WebKitLegacy-specific plugin compositing code, which is both unused and conflicting with our desire to use the Unified PDF plugin in modern WebKit on iOS. Removing this will make iOS WebKit respect layerHostingStrategy(), which the Unified PDF plugin depends on. Canonical link: https://commits.webkit.org/270339@main
- Loading branch information
1 parent
c1ff317
commit e2dca80
Showing
11 changed files
with
6 additions
and
103 deletions.
There are no files selected for viewing
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