| 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
|
|
|