Index: third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
index 4fa92d161011daa89f50274785a8e3af82479c1e..bf4f4cd7a8e304fbc1b3e88d314a9f6d99ee7a7c 100644 |
--- a/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/VisualViewportTest.cpp |
@@ -939,7 +939,7 @@ TEST_P(ParameterizedVisualViewportTest, DISABLED_TestWebFrameRangeAccountsForVis |
// the range and its end). Do a sanity check that the expected text is |
// selected |
mainFrame->executeScript(WebScriptSource("selectRange();")); |
- EXPECT_EQ("ir", mainFrame->selectionAsText().utf8()); |
+ EXPECT_EQ("ir", mainFrame->toWebLocalFrame()->selectionAsText().utf8()); |
webViewImpl()->selectionBounds(baseRect, extentRect); |
WebPoint initialPoint(baseRect.x, baseRect.y); |
@@ -950,8 +950,8 @@ TEST_P(ParameterizedVisualViewportTest, DISABLED_TestWebFrameRangeAccountsForVis |
// the right and down one line. |
VisualViewport& visualViewport = frame()->page()->frameHost().visualViewport(); |
visualViewport.move(FloatPoint(60, 25)); |
- mainFrame->moveRangeSelection(initialPoint, endPoint); |
- EXPECT_EQ("t ", mainFrame->selectionAsText().utf8()); |
+ mainFrame->toWebLocalFrame()->moveRangeSelection(initialPoint, endPoint); |
+ EXPECT_EQ("t ", mainFrame->toWebLocalFrame()->selectionAsText().utf8()); |
} |
// Test that the scrollFocusedEditableElementIntoRect method works with the visual viewport. |