Index: third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
diff --git a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
index 764b2b8a8722a7527392503d1b4fcfbd201d55cd..400ee522757aba8b0fc3fe85b548568f54672d82 100644 |
--- a/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
+++ b/third_party/WebKit/Source/web/tests/WebFrameTest.cpp |
@@ -8508,7 +8508,7 @@ TEST_P(ParameterizedWebFrameTest, HasVisibleContentOnVisibleFrames) { |
web_view_helper.InitializeAndLoad(base_url_ + "visible_frames.html"); |
for (WebFrame* frame = web_view_impl->MainFrameImpl()->TraverseNext(); frame; |
frame = frame->TraverseNext()) { |
- EXPECT_TRUE(frame->HasVisibleContent()); |
+ EXPECT_TRUE(frame->ToWebLocalFrame()->HasVisibleContent()); |
} |
} |
@@ -8519,7 +8519,7 @@ TEST_P(ParameterizedWebFrameTest, HasVisibleContentOnHiddenFrames) { |
web_view_helper.InitializeAndLoad(base_url_ + "hidden_frames.html"); |
for (WebFrame* frame = web_view_impl->MainFrameImpl()->TraverseNext(); frame; |
frame = frame->TraverseNext()) { |
- EXPECT_FALSE(frame->HasVisibleContent()); |
+ EXPECT_FALSE(frame->ToWebLocalFrame()->HasVisibleContent()); |
} |
} |