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 e64bad483fb97302b526031cc21c70fc997770fa..0b8b2ccda92f27d806350ef238d64d3585b3ec21 100644 |
--- a/third_party/WebKit/Source/core/layout/LayoutView.cpp |
+++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp |
@@ -187,6 +187,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()); |