| Index: Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
|
| index 8d47b9406905e1fd2bbee892796194169828eb5b..aa293079f3c08e1eb19ef284a47bd1d93323ca6c 100644
|
| --- a/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -1151,9 +1151,10 @@ void GraphicsLayer::didScroll()
|
| {
|
| if (m_scrollableArea) {
|
| DoublePoint newPosition = m_scrollableArea->minimumScrollPosition() + toDoubleSize(m_layer->layer()->scrollPositionDouble());
|
| - bool cancelProgrammaticAnimations = false;
|
| - // FIXME: Remove the toFloatPoint(). crbug.com/414283.
|
| - m_scrollableArea->scrollToOffsetWithoutAnimation(toFloatPoint(newPosition), cancelProgrammaticAnimations);
|
| +
|
| + // FrameView::setScrollPosition doesn't work for compositor commits (interacts poorly with programmatic scroll animations)
|
| + // so we need to use the ScrollableArea version. The FrameView method should go away soon anyway.
|
| + m_scrollableArea->ScrollableArea::setScrollPosition(newPosition, CompositorScroll);
|
| }
|
| }
|
|
|
|
|