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

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

Issue 2387883002: Use float for scroll offset. (Closed)
Patch Set: Fix README.md Created 4 years, 2 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 68cc8c28edfae3c546efd1acae547db13cda0950..f3d36dc1736034febf28c85e2cc2e593ad5d4d5d 100644
--- a/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
+++ b/third_party/WebKit/Source/web/tests/ScrollingCoordinatorTest.cpp
@@ -210,8 +210,8 @@ TEST_F(ScrollingCoordinatorTest, fastFractionalScrollingDiv) {
WebLayer* webScrollLayer =
compositedLayerMapping->scrollingContentsLayer()->platformLayer();
ASSERT_TRUE(webScrollLayer);
- ASSERT_NEAR(1.2, webScrollLayer->scrollPositionDouble().x, 0.01);
- ASSERT_NEAR(1.2, webScrollLayer->scrollPositionDouble().y, 0.01);
+ ASSERT_NEAR(1.2f, webScrollLayer->scrollPositionDouble().x, 0.01f);
+ ASSERT_NEAR(1.2f, webScrollLayer->scrollPositionDouble().y, 0.01f);
RuntimeEnabledFeatures::setFractionalScrollOffsetsEnabled(
origFractionalOffsetsEnabled);
« no previous file with comments | « third_party/WebKit/Source/web/tests/RootScrollerTest.cpp ('k') | third_party/WebKit/Source/web/tests/TopControlsTest.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698