Index: Source/bindings/v8/DOMWrapperWorld.h |
diff --git a/Source/bindings/v8/DOMWrapperWorld.h b/Source/bindings/v8/DOMWrapperWorld.h |
index 8d69ac5a66f91ac56f51adab66750ba042c5b881..16533cb6ae035408479967f9ef0b1688e41d4e83 100644 |
--- a/Source/bindings/v8/DOMWrapperWorld.h |
+++ b/Source/bindings/v8/DOMWrapperWorld.h |
@@ -51,13 +51,12 @@ |
EmbedderWorldIdLimit = (1 << 29), |
ScriptPreprocessorIsolatedWorldId, |
WorkerWorldId, |
- TestingWorldId, |
}; |
// This class represent a collection of DOM wrappers for a specific world. |
class DOMWrapperWorld : public RefCounted<DOMWrapperWorld> { |
public: |
- static PassRefPtr<DOMWrapperWorld> create(int worldId = -1, int extensionGroup = -1); |
+ static PassRefPtr<DOMWrapperWorld> create(int worldId, int extensionGroup); |
static const int mainWorldExtensionGroup = 0; |
static PassRefPtr<DOMWrapperWorld> ensureIsolatedWorld(int worldId, int extensionGroup); |
@@ -97,7 +96,7 @@ |
bool isMainWorld() const { return m_worldId == MainWorldId; } |
bool isWorkerWorld() const { return m_worldId == WorkerWorldId; } |
- bool isIsolatedWorld() const { return MainWorldId < m_worldId && m_worldId <= EmbedderWorldIdLimit; } |
+ bool isIsolatedWorld() const { return !isMainWorld() && !isWorkerWorld(); } |
int worldId() const { return m_worldId; } |
int extensionGroup() const { return m_extensionGroup; } |