Index: third_party/WebKit/Source/core/layout/LayoutView.cpp |
diff --git a/third_party/WebKit/Source/core/layout/LayoutView.cpp b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
index f211a982b81cdf218b5e0441a5a251c52b194d3a..0daccaf3c403177d8f3a02ada90ec7e15f1083c4 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
@@ -188,6 +188,13 @@ bool LayoutView::isChildAllowed(LayoutObject* child, |
return child->isBox(); |
} |
+bool LayoutView::canHaveChildren() const { |
+ FrameOwner* owner = frame()->owner(); |
+ if (!owner) |
+ return true; |
+ return !owner->isDisplayNone(); |
+} |
+ |
void LayoutView::layoutContent() { |
ASSERT(needsLayout()); |