Index: Source/bindings/v8/V8RecursionScope.h |
diff --git a/Source/bindings/v8/V8RecursionScope.h b/Source/bindings/v8/V8RecursionScope.h |
index 3bc3da7d0247301f1b1219c30ea842a61ffd19e6..2ccc8b3d0bddfc13f4d614d16c8748f72fff2fe1 100644 |
--- a/Source/bindings/v8/V8RecursionScope.h |
+++ b/Source/bindings/v8/V8RecursionScope.h |
@@ -32,11 +32,12 @@ |
#define V8RecursionScope_h |
#include "bindings/v8/V8PerIsolateData.h" |
-#include "core/dom/ExecutionContext.h" |
#include "wtf/Noncopyable.h" |
namespace WebCore { |
+class ExecutionContext; |
+ |
// C++ calls into script contexts which are "owned" by WebKit (created in a |
// process where WebKit.cpp initializes v8) must declare their type: |
// |
@@ -58,7 +59,7 @@ class V8RecursionScope { |
WTF_MAKE_NONCOPYABLE(V8RecursionScope); |
public: |
explicit V8RecursionScope(ExecutionContext* context) |
- : m_isDocumentContext(context && context->isDocument()) |
+ : m_context(context) |
{ |
V8PerIsolateData::current()->incrementRecursionLevel(); |
} |
@@ -100,8 +101,9 @@ public: |
private: |
void didLeaveScriptContext(); |
+ bool isStopped(); |
- bool m_isDocumentContext; |
+ ExecutionContext* m_context; |
adamk
2014/03/28 17:55:05
Can you explain why it's safe to store the context
|
}; |
} // namespace WebCore |