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

Unified Diff: third_party/WebKit/Source/web/WebFrame.cpp

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: Add new layout tests. Created 4 years 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
Index: third_party/WebKit/Source/web/WebFrame.cpp
diff --git a/third_party/WebKit/Source/web/WebFrame.cpp b/third_party/WebKit/Source/web/WebFrame.cpp
index c71218a4de653abefbe2a440e929a7b740810225..afae440af39f6262dcf57a76f89a47ffc52d6cf7 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -146,13 +146,15 @@ void WebFrame::setFrameOwnerProperties(
if (frame->isLocalFrame()) {
toLocalFrame(frame)->document()->willChangeFrameOwnerProperties(
properties.marginWidth, properties.marginHeight,
- static_cast<ScrollbarMode>(properties.scrollingMode));
+ static_cast<ScrollbarMode>(properties.scrollingMode),
+ properties.isDisplayNone);
}
owner->setScrollingMode(properties.scrollingMode);
owner->setMarginWidth(properties.marginWidth);
owner->setMarginHeight(properties.marginHeight);
owner->setAllowFullscreen(properties.allowFullscreen);
+ owner->setIsDisplayNone(properties.isDisplayNone);
owner->setCsp(properties.requiredCsp);
owner->setDelegatedpermissions(properties.delegatedPermissions);
}

Powered by Google App Engine
This is Rietveld 408576698