| Index: cc/trees/layer_tree_host_impl_unittest.cc
|
| diff --git a/cc/trees/layer_tree_host_impl_unittest.cc b/cc/trees/layer_tree_host_impl_unittest.cc
|
| index 49aa90653ff7ea0ade4100c705b0cd741271b04e..cbe41aca5103658a72a8aa091b722e3f4ad8a945 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -695,7 +695,6 @@ TEST_F(LayerTreeHostImplTest, ScrollRootCallsCommitAndRedraw) {
|
| EXPECT_TRUE(host_impl_->IsCurrentlyScrollingLayerAt(gfx::Point(0, 10),
|
| InputHandler::WHEEL));
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(gfx::Point(),
|
| InputHandler::WHEEL));
|
| EXPECT_TRUE(did_request_redraw_);
|
| @@ -719,7 +718,6 @@ TEST_F(LayerTreeHostImplTest, ScrollActiveOnlyAfterScrollMovement) {
|
| host_impl_->ScrollBy(UpdateState(gfx::Point(), gfx::Vector2d(0, 10)).get());
|
| EXPECT_TRUE(host_impl_->IsActivelyScrolling());
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsActivelyScrolling());
|
| }
|
|
|
| @@ -1046,7 +1044,6 @@ TEST_F(LayerTreeHostImplTest, NonFastScrollableRegionBasic) {
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(
|
| gfx::Point(25, 25), InputHandler::TOUCHSCREEN));
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(
|
| gfx::Point(75, 75), InputHandler::TOUCHSCREEN));
|
|
|
| @@ -1059,7 +1056,6 @@ TEST_F(LayerTreeHostImplTest, NonFastScrollableRegionBasic) {
|
| gfx::Point(75, 75), InputHandler::TOUCHSCREEN));
|
| host_impl_->ScrollBy(UpdateState(gfx::Point(), gfx::Vector2d(0, 10)).get());
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(
|
| gfx::Point(75, 75), InputHandler::TOUCHSCREEN));
|
| }
|
| @@ -1122,7 +1118,6 @@ TEST_F(LayerTreeHostImplTest, ScrollHandlerPresent) {
|
| InputHandler::TOUCHSCREEN);
|
| EXPECT_TRUE(host_impl_->scroll_affects_scroll_handler());
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->scroll_affects_scroll_handler());
|
| }
|
|
|
| @@ -2829,7 +2824,6 @@ class LayerTreeHostImplTestScrollbarAnimation : public LayerTreeHostImplTest {
|
| EXPECT_TRUE(animation_task_.Equals(base::Closure()));
|
|
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(did_request_next_frame_);
|
| EXPECT_FALSE(did_request_redraw_);
|
| if (expecting_animations) {
|
| @@ -2924,7 +2918,6 @@ class LayerTreeHostImplTestScrollbarAnimation : public LayerTreeHostImplTest {
|
| EXPECT_TRUE(animation_task_.Equals(base::Closure()));
|
|
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(did_request_next_frame_);
|
| EXPECT_FALSE(did_request_redraw_);
|
| EXPECT_EQ(base::TimeDelta(), requested_animation_delay_);
|
| @@ -9369,7 +9362,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest, FlingScrollBubblesToInner) {
|
| EXPECT_EQ(inner_scroll, host_impl_->CurrentlyScrollingLayer());
|
|
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_EQ(nullptr, host_impl_->CurrentlyScrollingLayer());
|
|
|
| EXPECT_VECTOR_EQ(inner_expected, inner_scroll->CurrentScrollOffset());
|
| @@ -9395,7 +9387,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest, FlingScrollBubblesToInner) {
|
| EXPECT_EQ(inner_scroll, host_impl_->CurrentlyScrollingLayer());
|
|
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_EQ(nullptr, host_impl_->CurrentlyScrollingLayer());
|
|
|
| EXPECT_VECTOR_EQ(inner_expected, inner_scroll->CurrentScrollOffset());
|
| @@ -9453,7 +9444,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest,
|
| outer_expected += scroll_delta;
|
| inner_expected += scroll_delta;
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(
|
| gfx::Point(), InputHandler::TOUCHSCREEN));
|
|
|
| @@ -9526,7 +9516,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest,
|
| .did_scroll);
|
| EXPECT_EQ(host_impl_->CurrentlyScrollingLayer(), child_scroll);
|
| host_impl_->ScrollEnd(EndState().get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(
|
| gfx::Point(), InputHandler::TOUCHSCREEN));
|
| }
|
| @@ -10110,7 +10099,6 @@ TEST_F(LayerTreeHostImplTimelinesTest, ScrollAnimatedAborted) {
|
| InputHandler::WHEEL));
|
| std::unique_ptr<ScrollState> scroll_state_end = EndState();
|
| host_impl_->ScrollEnd(scroll_state_end.get());
|
| - host_impl_->ClearCurrentlyScrollingLayerForTesting();
|
| EXPECT_FALSE(host_impl_->IsCurrentlyScrollingLayerAt(gfx::Point(),
|
| InputHandler::WHEEL));
|
|
|
|
|