| 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 efd0ecea0262ab79cf42eb6d800781855dff5ee2..2982c671cf98213f0b8bb1e64c16475f204f8e6d 100644
|
| --- a/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| +++ b/third_party/WebKit/Source/core/dom/DocumentLifecycle.cpp
|
| @@ -76,6 +76,17 @@ DocumentLifecycle::AllowThrottlingScope::~AllowThrottlingScope()
|
| s_allowThrottlingCount--;
|
| }
|
|
|
| +DocumentLifecycle::DisallowThrottlingScope::DisallowThrottlingScope(DocumentLifecycle& lifecycle)
|
| +{
|
| + m_savedCount = s_allowThrottlingCount;
|
| + s_allowThrottlingCount = 0;
|
| +}
|
| +
|
| +DocumentLifecycle::DisallowThrottlingScope::~DisallowThrottlingScope()
|
| +{
|
| + s_allowThrottlingCount = m_savedCount;
|
| +}
|
| +
|
| DocumentLifecycle::DocumentLifecycle()
|
| : m_state(Uninitialized)
|
| , m_detachCount(0)
|
|
|