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

Unified Diff: third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp

Issue 2680953002: Remove GraphicsLayer::didScroll and directly call ScrollableArea::didScroll (Closed)
Patch Set: Remove unneeded tests from parent patch Created 3 years, 10 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/platform/graphics/GraphicsLayerTest.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp b/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
index 08c88645d8e095511f00f58c4e37968e6eb164f1..871b6197f73fef5b98ca515608be9ce13e4c295a 100644
--- a/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
+++ b/third_party/WebKit/Source/platform/graphics/GraphicsLayerTest.cpp
@@ -210,7 +210,7 @@ TEST_F(GraphicsLayerTest, applyScrollToScrollableArea) {
WebDoublePoint scrollPosition(7, 9);
m_platformLayer->setScrollPositionDouble(scrollPosition);
wkorman 2017/02/07 22:18:05 Do we still need to do this? It looks like this wa
pdr. 2017/02/08 03:53:55 Good catch, these are no longer needed.
- m_graphicsLayer->didScroll();
+ scrollableArea->didScroll(gfx::ScrollOffset(7, 9));
EXPECT_FLOAT_EQ(scrollPosition.x, scrollableArea->getScrollOffset().width());
EXPECT_FLOAT_EQ(scrollPosition.y, scrollableArea->getScrollOffset().height());

Powered by Google App Engine
This is Rietveld 408576698