Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(755)

Unified Diff: third_party/WebKit/Source/core/layout/LayoutView.cpp

Issue 2513153002: Don't create boxes for the contents of display: none iframes. (Closed)
Patch Set: Handle dynamic changes properly. Created 4 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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());
« no previous file with comments | « third_party/WebKit/Source/core/layout/LayoutView.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698