Index: third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
diff --git a/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp b/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
index 7af402832792fe9f9a9d0b8c581a84abd24060ad..6730a1bb8d497b016365071641ebfca12aa2d7f9 100644 |
--- a/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
+++ b/third_party/WebKit/Source/web/ExternalPopupMenuTest.cpp |
@@ -158,13 +158,14 @@ TEST_F(ExternalPopupMenuTest, PopupAccountsForVisualViewportOffset) { |
IntRect rectInDocument = menuList->absoluteBoundingBoxRect(); |
webView()->setPageScaleFactor(2); |
- IntPoint scrollDelta(20, 30); |
+ ScrollOffset scrollDelta(20, 30); |
visualViewport.move(scrollDelta); |
select->showPopup(); |
- EXPECT_EQ(rectInDocument.x() - scrollDelta.x(), client().shownBounds().x); |
- EXPECT_EQ(rectInDocument.y() - scrollDelta.y(), client().shownBounds().y); |
+ EXPECT_EQ(rectInDocument.x() - scrollDelta.width(), client().shownBounds().x); |
+ EXPECT_EQ(rectInDocument.y() - scrollDelta.height(), |
+ client().shownBounds().y); |
} |
TEST_F(ExternalPopupMenuTest, DidAcceptIndex) { |