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

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: Fix DOM object leaks. Diff this against Patch Set 10. 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/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 cbc074117b88ae1749fc7fb69074f2298ed401d5..9c3ec48c1308a30e4f62ffe1258040a78a24e438 100644
--- a/third_party/WebKit/Source/core/frame/FrameOwner.h
+++ b/third_party/WebKit/Source/core/frame/FrameOwner.h
@@ -49,6 +49,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<mojom::blink::PermissionName>& delegatedPermissions()
const = 0;
@@ -84,6 +85,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<mojom::blink::PermissionName>& delegatedPermissions()
const override {

Powered by Google App Engine
This is Rietveld 408576698