Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(406)

Unified Diff: Source/bindings/v8/V8RecursionScope.h

Issue 209853010: [ABANDONED] Enable V8 Promises (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: done? Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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

Powered by Google App Engine
This is Rietveld 408576698