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

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

Issue 2743053003: [Reland #1] Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: rebaseline. Created 3 years, 9 months 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 372c36a18979dac5f91ae68e120378490ae173a6..6e6dd436cfb00dc7343ef45cb13c9a3cfdab12db 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -151,7 +151,8 @@ 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->setBrowsingContextContainerName(properties.name);
@@ -160,6 +161,7 @@ void WebFrame::setFrameOwnerProperties(
owner->setMarginHeight(properties.marginHeight);
owner->setAllowFullscreen(properties.allowFullscreen);
owner->setAllowPaymentRequest(properties.allowPaymentRequest);
+ owner->setIsDisplayNone(properties.isDisplayNone);
owner->setCsp(properties.requiredCsp);
owner->setAllowedFeatures(properties.allowedFeatures);
}
« no previous file with comments | « third_party/WebKit/Source/web/RemoteFrameOwner.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698