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

Unified Diff: content/common/frame_owner_properties.cc

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: content/common/frame_owner_properties.cc
diff --git a/content/common/frame_owner_properties.cc b/content/common/frame_owner_properties.cc
index a29dfc2cf619e50bce900aa0b1e84328b5a65a10..706a200be096110894697241eacf4ca724da4954 100644
--- a/content/common/frame_owner_properties.cc
+++ b/content/common/frame_owner_properties.cc
@@ -11,7 +11,8 @@ FrameOwnerProperties::FrameOwnerProperties()
margin_width(-1),
margin_height(-1),
allow_fullscreen(false),
- allow_payment_request(false) {}
+ allow_payment_request(false),
+ is_display_none(false) {}
FrameOwnerProperties::FrameOwnerProperties(const FrameOwnerProperties& other) =
default;
@@ -24,6 +25,7 @@ bool FrameOwnerProperties::operator==(const FrameOwnerProperties& other) const {
margin_height == other.margin_height &&
allow_fullscreen == other.allow_fullscreen &&
allow_payment_request == other.allow_payment_request &&
+ is_display_none == other.is_display_none &&
required_csp == other.required_csp &&
std::equal(allowed_features.begin(), allowed_features.end(),
other.allowed_features.begin());

Powered by Google App Engine
This is Rietveld 408576698