Index: cc/layer_tree_host_impl_unittest.cc |
diff --git a/cc/layer_tree_host_impl_unittest.cc b/cc/layer_tree_host_impl_unittest.cc |
index d707b46f90622c4c4f88256542e232c218e1e386..8e15d7718dbd62b2b3766fe0f4a6c690e88e02ee 100644 |
--- a/cc/layer_tree_host_impl_unittest.cc |
+++ b/cc/layer_tree_host_impl_unittest.cc |
@@ -371,7 +371,7 @@ TEST_P(LayerTreeHostImplTest, scrollRootCallsCommitAndRedraw) |
initializeRendererAndDrawFrame(); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
m_hostImpl->scrollEnd(); |
EXPECT_TRUE(m_didRequestRedraw); |
EXPECT_TRUE(m_didRequestCommit); |
@@ -414,7 +414,7 @@ TEST_P(LayerTreeHostImplTest, replaceTreeWhileScrolling) |
// We should still be scrolling, because the scrolled layer also exists in the new tree. |
gfx::Vector2d scrollDelta(0, 10); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->processScrollDeltas(); |
expectContains(*scrollInfo, scrollLayerId, scrollDelta); |
@@ -480,10 +480,10 @@ TEST_P(LayerTreeHostImplTest, nonFastScrollableRegionBasic) |
// All scroll types outside this region should succeed. |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(75, 75), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
m_hostImpl->scrollEnd(); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(75, 75), InputHandlerClient::Gesture), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
m_hostImpl->scrollEnd(); |
} |
@@ -501,7 +501,7 @@ TEST_P(LayerTreeHostImplTest, nonFastScrollableRegionWithOffset) |
// This point would fall into the non-fast scrollable region except that we've moved the layer down by 25 pixels. |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(40, 10), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 1)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 1), true); |
m_hostImpl->scrollEnd(); |
// This point is still inside the non-fast region. |
@@ -519,27 +519,27 @@ TEST_P(LayerTreeHostImplTest, scrollByReturnsCorrectValue) |
m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
// Trying to scroll to the left/top will not succeed. |
- EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0))); |
- EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, -10))); |
- EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, -10))); |
+ EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0), true)); |
+ EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, -10), true)); |
+ EXPECT_FALSE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, -10), true)); |
// Scrolling to the right/bottom will succeed. |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, 0))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, 10))); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, 0), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, 10), true)); |
// Scrolling to left/top will now succeed. |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, -10))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, -10))); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, -10), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, -10), true)); |
// Scrolling diagonally against an edge will succeed. |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, -10))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0))); |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 10))); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(10, -10), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 0), true)); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(-10, 10), true)); |
// Trying to scroll more than the available space will also succeed. |
- EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(5000, 5000))); |
+ EXPECT_TRUE(m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(5000, 5000), true)); |
} |
TEST_P(LayerTreeHostImplTest, clearRootRenderSurfaceAndHitTestTouchHandlerRegion) |
@@ -605,7 +605,7 @@ TEST_P(LayerTreeHostImplTest, implPinchZoom) |
gfx::Vector2d scrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->processScrollDeltas(); |
@@ -710,7 +710,7 @@ TEST_P(LayerTreeHostImplTest, pinchGesture) |
m_hostImpl->scrollBegin(gfx::Point(10, 10), InputHandlerClient::Wheel); |
m_hostImpl->pinchGestureBegin(); |
m_hostImpl->pinchGestureUpdate(pageScaleDelta, gfx::Point(10, 10)); |
- m_hostImpl->scrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10)); |
+ m_hostImpl->scrollBy(gfx::Point(10, 10), gfx::Vector2d(-10, -10), true); |
m_hostImpl->pinchGestureUpdate(pageScaleDelta, gfx::Point(20, 20)); |
m_hostImpl->pinchGestureEnd(); |
m_hostImpl->scrollEnd(); |
@@ -877,7 +877,7 @@ TEST_P(LayerTreeHostImplTest, inhibitScrollAndPageScaleUpdatesWhileAnimatingPage |
// Scrolling during the animation is ignored. |
const gfx::Vector2d scrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(target.x(), target.y()), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The final page scale and scroll deltas should match what we got |
@@ -907,7 +907,7 @@ TEST_P(LayerTreeHostImplTest, compositorFrameMetadata) |
// Scrolling should update metadata immediately. |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
{ |
CompositorFrameMetadata metadata = m_hostImpl->makeCompositorFrameMetadata(); |
EXPECT_EQ(gfx::Vector2dF(0.0f, 10.0f), metadata.root_scroll_offset); |
@@ -1212,7 +1212,7 @@ TEST_P(LayerTreeHostImplTest, scrollNonCompositedRoot) |
initializeRendererAndDrawFrame(); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
m_hostImpl->scrollEnd(); |
EXPECT_TRUE(m_didRequestRedraw); |
EXPECT_TRUE(m_didRequestCommit); |
@@ -1230,7 +1230,7 @@ TEST_P(LayerTreeHostImplTest, scrollChildCallsCommitAndRedraw) |
initializeRendererAndDrawFrame(); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10)); |
+ m_hostImpl->scrollBy(gfx::Point(), gfx::Vector2d(0, 10), true); |
m_hostImpl->scrollEnd(); |
EXPECT_TRUE(m_didRequestRedraw); |
EXPECT_TRUE(m_didRequestCommit); |
@@ -1306,7 +1306,7 @@ TEST_P(LayerTreeHostImplTest, scrollRootAndChangePageScaleOnMainThread) |
gfx::Vector2d expectedScrollDelta(scrollDelta); |
gfx::Vector2d expectedMaxScroll(m_hostImpl->rootLayer()->maxScrollOffset()); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
// Set new page scale from main thread. |
@@ -1360,7 +1360,7 @@ TEST_P(LayerTreeHostImplTest, scrollRootAndChangePageScaleOnImplThread) |
gfx::Vector2d expectedScrollDelta(scrollDelta); |
gfx::Vector2d expectedMaxScroll(m_hostImpl->rootLayer()->maxScrollOffset()); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
// Set new page scale on impl thread by pinching. |
@@ -1448,7 +1448,7 @@ TEST_P(LayerTreeHostImplTest, scrollChildAndChangePageScaleOnMainThread) |
gfx::Vector2d expectedScrollDelta(scrollDelta); |
gfx::Vector2d expectedMaxScroll(child->maxScrollOffset()); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
float pageScale = 2; |
@@ -1494,7 +1494,7 @@ TEST_P(LayerTreeHostImplTest, scrollChildBeyondLimit) |
{ |
gfx::Vector2d scrollDelta(-8, -7); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->processScrollDeltas(); |
@@ -1528,7 +1528,7 @@ TEST_P(LayerTreeHostImplTest, scrollEventBubbling) |
{ |
gfx::Vector2d scrollDelta(0, 4); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(5, 5), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
scoped_ptr<ScrollAndScaleSet> scrollInfo = m_hostImpl->processScrollDeltas(); |
@@ -1572,7 +1572,7 @@ TEST_P(LayerTreeHostImplTest, scrollAxisAlignedRotatedLayer) |
// Scroll to the right in screen coordinates with a gesture. |
gfx::Vector2d gestureScrollDelta(10, 0); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The layer should have scrolled down in its local coordinates. |
@@ -1583,7 +1583,7 @@ TEST_P(LayerTreeHostImplTest, scrollAxisAlignedRotatedLayer) |
m_hostImpl->rootLayer()->setScrollDelta(gfx::Vector2dF()); |
gfx::Vector2d wheelScrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), wheelScrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), wheelScrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The layer should have scrolled down in its local coordinates. |
@@ -1617,7 +1617,7 @@ TEST_P(LayerTreeHostImplTest, scrollNonAxisAlignedRotatedLayer) |
// Scroll down in screen coordinates with a gesture. |
gfx::Vector2d gestureScrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The child layer should have scrolled down in its local coordinates an amount proportional to |
@@ -1636,7 +1636,7 @@ TEST_P(LayerTreeHostImplTest, scrollNonAxisAlignedRotatedLayer) |
m_hostImpl->rootLayer()->children()[1]->setScrollDelta(gfx::Vector2dF()); |
gfx::Vector2d gestureScrollDelta(10, 0); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), gestureScrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The child layer should have scrolled down in its local coordinates an amount proportional to |
@@ -1669,7 +1669,7 @@ TEST_P(LayerTreeHostImplTest, scrollScaledLayer) |
// Scroll down in screen coordinates with a gesture. |
gfx::Vector2d scrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The layer should have scrolled down in its local coordinates, but half he amount. |
@@ -1680,7 +1680,7 @@ TEST_P(LayerTreeHostImplTest, scrollScaledLayer) |
m_hostImpl->rootLayer()->setScrollDelta(gfx::Vector2dF()); |
gfx::Vector2d wheelScrollDelta(0, 10); |
EXPECT_EQ(m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Wheel), InputHandlerClient::ScrollStarted); |
- m_hostImpl->scrollBy(gfx::Point(), wheelScrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), wheelScrollDelta, true); |
m_hostImpl->scrollEnd(); |
// The scale should not have been applied to the scroll delta. |
@@ -4052,7 +4052,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportForcesCommitRedraw(const float d |
// This scroll will force the viewport to pan horizontally. |
gfx::Vector2d scrollDelta(5, 0); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
EXPECT_EQ(true, m_didRequestCommit); |
@@ -4064,7 +4064,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportForcesCommitRedraw(const float d |
// This scroll will force the viewport to pan vertically. |
scrollDelta = gfx::Vector2d(0, 5); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDelta); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDelta, true); |
m_hostImpl->scrollEnd(); |
EXPECT_EQ(true, m_didRequestCommit); |
@@ -4124,7 +4124,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportTest(const float deviceScaleFact |
gfx::Vector2d scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
gfx::Vector2d expectedMaxScroll(m_hostImpl->rootLayer()->maxScrollOffset()); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4142,7 +4142,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportTest(const float deviceScaleFact |
scrollDelta = gfx::Vector2d(0, 5); |
scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4210,7 +4210,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollTest(const float device |
gfx::Vector2d expectedScrollDelta(scrollDelta); |
gfx::Vector2d expectedMaxScroll(m_hostImpl->rootLayer()->maxScrollOffset()); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4226,7 +4226,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollTest(const float device |
scrollDelta = gfx::Vector2d(2, 0); |
scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4247,7 +4247,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollTest(const float device |
scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
expectedScrollDelta += scrollDelta; |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4263,7 +4263,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollTest(const float device |
scrollDelta = gfx::Vector2d(0, 1); |
scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4334,7 +4334,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollBoundaryTest(const floa |
gfx::Vector2d expectedMaxScroll(m_hostImpl->rootLayer()->maxScrollOffset()); |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |
@@ -4354,7 +4354,7 @@ void LayerTreeHostImplTest::pinchZoomPanViewportAndScrollBoundaryTest(const floa |
scrollDeltaInZoomedViewport = ToFlooredVector2d(gfx::ScaleVector2d(scrollDelta, m_hostImpl->totalPageScaleFactorForTesting())); |
expectedScrollDelta += gfx::Vector2d(0, 4); // This component gets handled by document scroll. |
EXPECT_EQ(InputHandlerClient::ScrollStarted, m_hostImpl->scrollBegin(gfx::Point(0, 0), InputHandlerClient::Gesture)); |
- m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport); |
+ m_hostImpl->scrollBy(gfx::Point(), scrollDeltaInZoomedViewport, true); |
m_hostImpl->scrollEnd(); |
drawOneFrame(); |