Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(9)

Unified Diff: third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp

Issue 1385123003: Delete scrollCompensationAdjustment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase again Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
diff --git a/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp b/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
index afe0aff7b1d724c1d5e3367a80c331e65a070760..e5a9db9f5eb6515f6b2d8491b74e67c3390a0e38 100644
--- a/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
@@ -201,27 +201,6 @@ static WebLayer* webLayerFromElement(Element* element)
return graphicsLayer->platformLayer();
}
-
-TEST_F(ScrollingCoordinatorTest, fractionalScrollingNonLayerFixedPosition)
-{
- registerMockedHttpURLLoad("fractional-scroll-fixed-position.html");
- navigateTo(m_baseURL + "fractional-scroll-fixed-position.html");
- // Prevent fixed-position element from getting its own layer.
- webViewImpl()->settings()->setPreferCompositingToLCDTextEnabled(false);
- forceFullCompositingUpdate();
-
- FrameView* frameView = frame()->view();
- frameView->setScrollPosition(DoublePoint(1.5, 1.5), ProgrammaticScroll);
- WebLayer* rootScrollLayer = getRootScrollLayer();
- // Scroll on main if there is non-composited fixed position element.
- // And the containing scroll layer should not get fractional scroll offset.
- ASSERT_TRUE(rootScrollLayer->shouldScrollOnMainThread());
- ASSERT_EQ(1.0, rootScrollLayer->scrollPositionDouble().x);
- ASSERT_EQ(1.0, rootScrollLayer->scrollPositionDouble().y);
- ASSERT_EQ(0.0, rootScrollLayer->position().x);
- ASSERT_EQ(0.0, rootScrollLayer->position().y);
-}
-
TEST_F(ScrollingCoordinatorTest, fastScrollingForFixedPosition)
{
registerMockedHttpURLLoad("fixed-position.html");
« no previous file with comments | « third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp ('k') | third_party/WebKit/public/platform/WebLayer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698