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

Unified Diff: third_party/WebKit/Source/core/dom/DocumentLifecycle.h

Issue 1246173002: Throttle rendering pipeline for invisible iframes (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Rebased to post merge awesomeness. Created 5 years, 3 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/dom/DocumentLifecycle.h
diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
index fae9797b7412a84a7b64a592bdd20302f5e3b5d4..ca88f2f3dbfd0b4dac2718dfc23b0f1ad92749b7 100644
--- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
+++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.h
@@ -127,6 +127,8 @@ public:
DocumentLifecycle& m_documentLifecycle;
};
+ enum class ThrottlingMode { Disallow, Allow };
+
DocumentLifecycle();
~DocumentLifecycle();
@@ -150,6 +152,9 @@ public:
m_detachCount--;
}
+ void setThrottlingMode(ThrottlingMode);
+ ThrottlingMode throttlingMode() const;
+
private:
#if ENABLE(ASSERT)
bool canAdvanceTo(State) const;
@@ -158,6 +163,7 @@ private:
State m_state;
int m_detachCount;
+ ThrottlingMode m_throttlingMode;
};
inline bool DocumentLifecycle::stateAllowsTreeMutations() const
« no previous file with comments | « third_party/WebKit/Source/core/dom/Document.cpp ('k') | third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698