| Index: third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| diff --git a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| index efc1b4b99a161bf0e73e1faf24b2430f7a210383..7278c05cdf31212a1cba10696ecc13231c89eea8 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| @@ -65,6 +65,7 @@ DocumentLifecycle::DeprecatedTransition::~DeprecatedTransition()
|
| DocumentLifecycle::DocumentLifecycle()
|
| : m_state(Uninitialized)
|
| , m_detachCount(0)
|
| + , m_throttlingMode(ThrottlingMode::Disallow)
|
| {
|
| }
|
|
|
| @@ -291,6 +292,16 @@ void DocumentLifecycle::ensureStateAtMost(State state)
|
| m_state = state;
|
| }
|
|
|
| +void DocumentLifecycle::setThrottlingMode(ThrottlingMode throttlingMode)
|
| +{
|
| + m_throttlingMode = throttlingMode;
|
| +}
|
| +
|
| +DocumentLifecycle::ThrottlingMode DocumentLifecycle::throttlingMode() const
|
| +{
|
| + return m_throttlingMode;
|
| +}
|
| +
|
| #if ENABLE(ASSERT)
|
| #define DEBUG_STRING_CASE(StateName) \
|
| case StateName: return #StateName
|
|
|