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

Unified Diff: third_party/WebKit/Source/core/frame/FrameOwner.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
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/core/frame/FrameOwner.h
diff --git a/third_party/WebKit/Source/core/frame/FrameOwner.h b/third_party/WebKit/Source/core/frame/FrameOwner.h
index 440b85e3f88d0c78fb23a7c8c4d6b7a8a480657f..103c02a2a080edaeee31627f0237898f914d7f75 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -48,6 +48,7 @@ class CORE_EXPORT FrameOwner : public GarbageCollectedMixin {
virtual int marginHeight() const = 0;
virtual bool allowFullscreen() const = 0;
virtual bool allowPaymentRequest() const = 0;
+ virtual bool isDisplayNone() const = 0;
virtual AtomicString csp() const = 0;
virtual const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const = 0;
};
@@ -81,6 +82,7 @@ class CORE_EXPORT DummyFrameOwner
int marginHeight() const override { return -1; }
bool allowFullscreen() const override { return false; }
bool allowPaymentRequest() const override { return false; }
+ bool isDisplayNone() const override { return false; }
AtomicString csp() const override { return nullAtom; }
const WebVector<WebFeaturePolicyFeature>& allowedFeatures() const override {
DEFINE_STATIC_LOCAL(WebVector<WebFeaturePolicyFeature>, features, ());
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/frame/FrameView.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698