Index: third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
index 0d83855a8eadaad011b0757470bd4c8ce41bebcc..8d6a3909ec8199529c85769e452bdc256d3a5339 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutTestHelper.cpp |
@@ -67,6 +67,8 @@ Document& RenderingTest::setupChildIframe(const AtomicString& iframeElementId, c |
m_subframe = LocalFrame::create(m_frameLoaderClient.get(), document().frame()->host(), &iframe); |
m_subframe->setView(FrameView::create(m_subframe.get(), IntSize(500, 500))); |
m_subframe->init(); |
+ m_subframe->view()->setParentVisible(true); |
+ m_subframe->view()->setSelfVisible(true); |
static_cast<SingleChildFrameLoaderClient*>(document().frame()->client())->setChild(m_subframe.get()); |
document().frame()->host()->incrementSubframeCount(); |
Document& frameDocument = *iframe.contentDocument(); |