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

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: Rebaseline. Created 3 years, 10 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 d59c8170970c2fb28bdc8fc58c94c931b261100f..2bae07eeac9d1b457fc11226dcf45af0a1abfb2c 100644
--- a/third_party/WebKit/Source/web/WebFrame.cpp
+++ b/third_party/WebKit/Source/web/WebFrame.cpp
@@ -149,7 +149,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);
@@ -158,6 +159,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->setDelegatedpermissions(properties.delegatedPermissions);
}
« 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