| 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 a98eff09dad3f7e3631bb9233b0cdb2b671d1e75..770066ad0731c01420d05eb155e948cf7a07ff6d 100644
|
| --- a/cc/trees/layer_tree_host_impl_unittest.cc
|
| +++ b/cc/trees/layer_tree_host_impl_unittest.cc
|
| @@ -681,7 +681,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_);
|
| @@ -705,7 +704,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());
|
| }
|
|
|
| @@ -1032,7 +1030,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));
|
|
|
| @@ -1045,7 +1042,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));
|
| }
|
| @@ -1108,7 +1104,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());
|
| }
|
|
|
| @@ -2779,7 +2774,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) {
|
| @@ -2873,7 +2867,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_);
|
| @@ -9607,7 +9600,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest, FlingScrollBubblesToInner) {
|
| EXPECT_EQ(outer_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());
|
| @@ -9633,7 +9625,6 @@ TEST_F(LayerTreeHostImplVirtualViewportTest, FlingScrollBubblesToInner) {
|
| EXPECT_EQ(outer_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());
|
| @@ -9691,7 +9682,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));
|
|
|
| @@ -9764,7 +9754,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));
|
| }
|
| @@ -10414,7 +10403,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));
|
|
|
|
|