| Index: Source/core/dom/ExecutionContext.cpp
|
| ===================================================================
|
| --- Source/core/dom/ExecutionContext.cpp (revision 187183)
|
| +++ Source/core/dom/ExecutionContext.cpp (working copy)
|
| @@ -36,7 +36,6 @@
|
| #include "core/html/PublicURLManager.h"
|
| #include "core/inspector/InspectorInstrumentation.h"
|
| #include "core/inspector/ScriptCallStack.h"
|
| -#include "core/page/WindowFocusAllowedIndicator.h"
|
| #include "core/workers/WorkerGlobalScope.h"
|
| #include "core/workers/WorkerThread.h"
|
| #include "wtf/MainThread.h"
|
| @@ -74,7 +73,6 @@
|
| , m_inDispatchErrorEvent(false)
|
| , m_activeDOMObjectsAreSuspended(false)
|
| , m_activeDOMObjectsAreStopped(false)
|
| - , m_windowFocusTokens(0)
|
| {
|
| }
|
|
|
| @@ -273,26 +271,6 @@
|
| }
|
| }
|
|
|
| -void ExecutionContext::allowWindowFocus()
|
| -{
|
| - ++m_windowFocusTokens;
|
| -}
|
| -
|
| -void ExecutionContext::consumeWindowFocus()
|
| -{
|
| - if (m_windowFocusTokens == 0)
|
| - return;
|
| - --m_windowFocusTokens;
|
| -}
|
| -
|
| -bool ExecutionContext::isWindowFocusAllowed() const
|
| -{
|
| - // FIXME: WindowFocusAllowedIndicator::windowFocusAllowed() is temporary,
|
| - // it will be removed as soon as WebScopedWindowFocusAllowedIndicator will
|
| - // be updated to not use WindowFocusAllowedIndicator.
|
| - return m_windowFocusTokens > 0 || WindowFocusAllowedIndicator::windowFocusAllowed();
|
| -}
|
| -
|
| void ExecutionContext::trace(Visitor* visitor)
|
| {
|
| #if ENABLE(OILPAN)
|
|
|