| Index: Source/platform/graphics/GraphicsLayer.cpp
|
| diff --git a/Source/platform/graphics/GraphicsLayer.cpp b/Source/platform/graphics/GraphicsLayer.cpp
|
| index 3c3dd75845240ce1c0c424648c1111c5f9aee357..f9457659d44265de14b8075e3a3cecb6ef2b9e6c 100644
|
| --- a/Source/platform/graphics/GraphicsLayer.cpp
|
| +++ b/Source/platform/graphics/GraphicsLayer.cpp
|
| @@ -1056,8 +1056,11 @@ void GraphicsLayer::notifyAnimationFinished(double, WebCompositorAnimation::Targ
|
|
|
| void GraphicsLayer::didScroll()
|
| {
|
| - if (m_scrollableArea)
|
| - m_scrollableArea->scrollToOffsetWithoutAnimation(m_scrollableArea->minimumScrollPosition() + toIntSize(m_layer->layer()->scrollPosition()));
|
| + if (m_scrollableArea) {
|
| + DoublePoint newPosition = m_scrollableArea->minimumScrollPosition() + toDoubleSize(m_layer->layer()->scrollPositionDouble());
|
| + // FIXME: Remove the toFloatPoint(). crbug.com/414283.
|
| + m_scrollableArea->scrollToOffsetWithoutAnimation(toFloatPoint(newPosition));
|
| + }
|
| }
|
|
|
| } // namespace blink
|
|
|