| 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 bc3ab68c3224a822d95c125fd48b2e22d2e619da..bb95cfb5aadfda661c59db49f33f12008f65c9f1 100644
|
| --- a/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| +++ b/third_party/WebKit/Source/core/layout/LayoutView.cpp
|
| @@ -188,6 +188,15 @@ bool LayoutView::isChildAllowed(LayoutObject* child,
|
| return child->isBox();
|
| }
|
|
|
| +bool LayoutView::canHaveChildren() const {
|
| + // TODO(esprehn): This doesn't work for OOPIF, we need to replicate the
|
| + // display state for remote frames to support that.
|
| + HTMLFrameOwnerElement* owner = frame()->deprecatedLocalOwner();
|
| + if (!owner)
|
| + return true;
|
| + return owner->layoutObject();
|
| +}
|
| +
|
| void LayoutView::layoutContent() {
|
| ASSERT(needsLayout());
|
|
|
|
|