Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Cherry-pick 270820@main (50aa992). https://bugs.webkit.org/show_bug.c…
…gi?id=259912 [WPE][Debug] ASSERTION FAILED: inProgrammaticScroll == (options.type == ScrollType::Programmatic) https://bugs.webkit.org/show_bug.cgi?id=259912 Reviewed by Simon Fraser. In `AsyncScrollingCoordinator::requestScrollToPosition()` we assert that the `scrollableArea`'s `currentScrollType()` matches the `ScrollPositionChangeOptions`'s type. In some circumstances, this method can be called as a result of calling `ScrollableArea::scrollToPositionWithAnimation()`, which currently doesn't set its `currentScrollType` from `options` argument. `LocalFrameView`, which is a subclass of `ScrollableArea`, adds a method whose only job is to set/restore `currentScrollType` and call parent's method. We can move this logic to the `ScrollableArea` class. There's actually a FIXME about this. * Source/WebCore/page/LocalFrameView.cpp: (WebCore::LocalFrameView::scrollToPositionWithAnimation): Deleted. * Source/WebCore/page/LocalFrameView.h: * Source/WebCore/platform/ScrollableArea.cpp: (WebCore::ScrollableArea::scrollToPositionWithAnimation): Canonical link: https://commits.webkit.org/270820@main
- Loading branch information