-
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.
[UnifiedPDF] Revert back to the fixed-size plugin
https://bugs.webkit.org/show_bug.cgi?id=262831 rdar://116609170 Reviewed by Tim Horton and Chris Dumez. Undo some of 268697@main so that the UnifiedPDFPlugin once again is a fixed size; in future, it will scroll internally as the PDFPlugin does. So simplify the style in `PluginDocumentParser::createStyleElement()` to have the html, body and embed all be width and height 100%, and make the document non-scrollable. Remove `pluginFillsViewport()`. Resize the layers when we get `geometryDidChange()`. Also ensure that the layer tree is updated when the plugin loads the PDF via a call to `invalidateStyleAndLayerComposition()` in `PluginView::manualLoadDidFinishLoading()`. Fix a spelling error in "udpateLayerHierarchy". * Source/WebCore/html/PluginDocument.cpp: (WebCore::PluginDocumentParser::createStyleElement): * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: (WebKit::PDFPluginBase::pluginFillsViewport const): Deleted. * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h: * Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm: (WebKit::UnifiedPDFPlugin::installPDFDocument): (WebKit::UnifiedPDFPlugin::updateLayerHierarchy): (WebKit::UnifiedPDFPlugin::deviceScaleFactor const): (WebKit::UnifiedPDFPlugin::geometryDidChange): (WebKit::UnifiedPDFPlugin::sizeToFitContents): Deleted. (WebKit::UnifiedPDFPlugin::udpateLayerHierarchy): Deleted. * Source/WebKit/WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::PluginView): (WebKit::PluginView::manualLoadDidFinishLoading): (WebKit::PluginView::updateDocumentForPluginSizingBehavior): Deleted. Canonical link: https://commits.webkit.org/269048@main
- Loading branch information
Showing
5 changed files
with
36 additions
and
46 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