-
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] Can't click-drag the scrollbar
https://bugs.webkit.org/show_bug.cgi?id=271115 rdar://124785551 Reviewed by Abrar Rahman Protyasha. For mouse interaction with the PDFPlugin's scrollbars to work, `EventHandler::enclosingScrollableArea()` has to be able to find the plugin node's ScrollableArea. Add an easy way to get to the ScrollableArea from RenderEmbeddedObject, which calls through the PluginView. Replace the odd code in `startKeyboardScrollAnimationOnPlugin()` with this cleaner code. Oddly that broke keyboard scrolling, which is fixed by implementing `scrollAnimatorEnabled()` in PDFPluginBase to return true. Also implement `PDFPluginBase::enclosingScrollableArea()`; this isn't called on macOS at this point, but is implemented for completeness. * Source/WebCore/page/EventHandler.cpp: (WebCore::EventHandler::enclosingScrollableArea): (WebCore::EventHandler::startKeyboardScrollAnimationOnPlugin): * Source/WebCore/plugins/PluginViewBase.h: (WebCore::PluginViewBase::scrollableArea const): * Source/WebCore/rendering/RenderEmbeddedObject.cpp: (WebCore::RenderEmbeddedObject::scrollableArea const): (WebCore::RenderEmbeddedObject::usesAsyncScrolling const): (WebCore::RenderEmbeddedObject::scrollingNodeID const): (WebCore::RenderEmbeddedObject::willAttachScrollingNode): (WebCore::RenderEmbeddedObject::didAttachScrollingNode): * Source/WebCore/rendering/RenderEmbeddedObject.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.h: * Source/WebKit/WebProcess/Plugins/PDF/PDFPluginBase.mm: (WebKit::PDFPluginBase::enclosingScrollableArea const): * Source/WebKit/WebProcess/Plugins/PluginView.cpp: (WebKit::PluginView::scrollableArea const): * Source/WebKit/WebProcess/Plugins/PluginView.h: Canonical link: https://commits.webkit.org/276244@main
- Loading branch information
Showing
8 changed files
with
54 additions
and
12 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