| 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 00192c6339801f290c7431551abf5232330f50a9..9aa485590224cd00e3ce7484aa56a09945a3637f 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());
|
|
|
|
|