Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 2c1a883b5e251c7e4f932ebbd9280485b7b3696c
https://github.com/WebKit/WebKit/commit/2c1a883b5e251c7e4f932ebbd9280485b7b3696c
Author: Abrar Rahman Protyasha <[email protected]>
Date: 2025-01-15 (Wed, 15 Jan 2025)
Changed paths:
M Source/WebCore/html/PluginDocument.cpp
M Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h
M Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm
M Source/WebKit/WebProcess/Plugins/PluginView.cpp
Log Message:
-----------
[UnifiedPDF] [iOS] Inflate the plugin to fit the PDF content
https://bugs.webkit.org/show_bug.cgi?id=285765
rdar://142516290
Reviewed by Wenson Hsieh.
For iOS, we want to use main frame scrolling rather than have the
plugin as a subscrollable region. This means that the plugin needs to be
inflated to fit the PDF content size.
This patch introduces the first step in this direction. Future patches
will involve, among other things, changes to how the plugin handles page
scale gestures, to maintain the "plugin fits content" behavior on scale
gestures or programmatic view scale updates.
* Source/WebCore/html/PluginDocument.cpp:
(WebCore::PluginDocumentParser::createStyleElement):
* Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h:
(WebKit::PDFPluginBase::shouldSizeToFitContent const):
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.h:
* Source/WebKit/WebProcess/Plugins/PDF/UnifiedPDF/UnifiedPDFPlugin.mm:
(WebKit::UnifiedPDFPlugin::installPDFDocument):
(WebKit::UnifiedPDFPlugin::shouldSizeToFitContent const):
(WebKit::UnifiedPDFPlugin::sizeToFitContentsIfNeeded):
(WebKit::UnifiedPDFPlugin::updateLayout):
* Source/WebKit/WebProcess/Plugins/PluginView.cpp:
(WebKit::PluginView::PluginView):
(WebKit::PluginView::updateDocumentForPluginSizingBehavior):
Canonical link: https://commits.webkit.org/288932@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes