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

Unified Diff: third_party/WebKit/public/web/WebFrameOwnerProperties.h

Issue 2564633002: Don't create layout objects for children of display-none iframes. (Closed)
Patch Set: Comments from esprehn. 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/public/web/WebFrameOwnerProperties.h
diff --git a/third_party/WebKit/public/web/WebFrameOwnerProperties.h b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
index bc3cee54401f55c0a909b505f82fac461efe196f..ac09ec22e3abb0497783cede6903d442c1754602 100644
--- a/third_party/WebKit/public/web/WebFrameOwnerProperties.h
+++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
@@ -20,6 +20,7 @@ struct WebFrameOwnerProperties {
int marginHeight;
bool allowFullscreen;
bool allowPaymentRequest;
+ bool isDisplayNone;
WebString requiredCsp;
WebVector<WebPermissionType> delegatedPermissions;
@@ -28,7 +29,8 @@ struct WebFrameOwnerProperties {
marginWidth(-1),
marginHeight(-1),
allowFullscreen(false),
- allowPaymentRequest(false) {}
+ allowPaymentRequest(false),
+ isDisplayNone(false) {}
#if INSIDE_BLINK
WebFrameOwnerProperties(
@@ -37,6 +39,7 @@ struct WebFrameOwnerProperties {
int marginHeight,
bool allowFullscreen,
bool allowPaymentRequest,
+ bool isDisplayNone,
const WebString& requiredCsp,
const WebVector<WebPermissionType>& delegatedPermissions)
: scrollingMode(static_cast<ScrollingMode>(scrollingMode)),
@@ -44,6 +47,7 @@ struct WebFrameOwnerProperties {
marginHeight(marginHeight),
allowFullscreen(allowFullscreen),
allowPaymentRequest(allowPaymentRequest),
+ isDisplayNone(isDisplayNone),
requiredCsp(requiredCsp),
delegatedPermissions(delegatedPermissions) {}
#endif

Powered by Google App Engine
This is Rietveld 408576698