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

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: Rebase. 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/public/web/WebFrameOwnerProperties.h
diff --git a/third_party/WebKit/public/web/WebFrameOwnerProperties.h b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
index 9e70bc1a76745773a6d5e33b1b4dc8c2fe8343d6..984746d12e33672183216492f56f0fe6100cb343 100644
--- a/third_party/WebKit/public/web/WebFrameOwnerProperties.h
+++ b/third_party/WebKit/public/web/WebFrameOwnerProperties.h
@@ -21,6 +21,7 @@ struct WebFrameOwnerProperties {
int marginHeight;
bool allowFullscreen;
bool allowPaymentRequest;
+ bool isDisplayNone;
WebString requiredCsp;
WebVector<WebPermissionType> delegatedPermissions;
@@ -29,7 +30,8 @@ struct WebFrameOwnerProperties {
marginWidth(-1),
marginHeight(-1),
allowFullscreen(false),
- allowPaymentRequest(false) {}
+ allowPaymentRequest(false),
+ isDisplayNone(false) {}
#if INSIDE_BLINK
WebFrameOwnerProperties(
@@ -39,6 +41,7 @@ struct WebFrameOwnerProperties {
int marginHeight,
bool allowFullscreen,
bool allowPaymentRequest,
+ bool isDisplayNone,
const WebString& requiredCsp,
const WebVector<WebPermissionType>& delegatedPermissions)
: name(name),
@@ -47,6 +50,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