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

Unified Diff: third_party/WebKit/Source/web/RemoteFrameOwner.h

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/RemoteFrameOwner.h
diff --git a/third_party/WebKit/Source/web/RemoteFrameOwner.h b/third_party/WebKit/Source/web/RemoteFrameOwner.h
index 8d432b9d33916bfb93a65ca779f4225ee70d833b..9a5d150203a362f169b891cc39c2003cdc452cad 100644
--- a/third_party/WebKit/Source/web/RemoteFrameOwner.h
+++ b/third_party/WebKit/Source/web/RemoteFrameOwner.h
@@ -47,6 +47,7 @@ class RemoteFrameOwner final
int marginHeight() const override { return m_marginHeight; }
bool allowFullscreen() const override { return m_allowFullscreen; }
bool allowPaymentRequest() const override { return m_allowPaymentRequest; }
+ bool isDisplayNone() const override { return m_isDisplayNone; }
AtomicString csp() const override { return m_csp; }
const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override {
return m_allowedFeatures;
@@ -64,6 +65,7 @@ class RemoteFrameOwner final
void setAllowPaymentRequest(bool allowPaymentRequest) {
m_allowPaymentRequest = allowPaymentRequest;
}
+ void setIsDisplayNone(bool isDisplayNone) { m_isDisplayNone = isDisplayNone; }
void setCsp(const WebString& csp) { m_csp = csp; }
void setAllowedFeatures(
const WebVector<WebFeaturePolicyFeature>& allowedFeatures) {
@@ -88,6 +90,7 @@ class RemoteFrameOwner final
int m_marginHeight;
bool m_allowFullscreen;
bool m_allowPaymentRequest;
+ bool m_isDisplayNone;
WebString m_csp;
WebVector<WebFeaturePolicyFeature> m_allowedFeatures;
};
« no previous file with comments | « third_party/WebKit/Source/web/LocalFrameClientImpl.cpp ('k') | third_party/WebKit/Source/web/RemoteFrameOwner.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698