Index: Source/bindings/v8/DOMWrapperWorld.cpp |
diff --git a/Source/bindings/v8/DOMWrapperWorld.cpp b/Source/bindings/v8/DOMWrapperWorld.cpp |
index 4c789762f560a737a6eb37cd1694b4ef5eb880e6..f85f8150896cc9e1c9a9ebd4904823aed78e7d33 100644 |
--- a/Source/bindings/v8/DOMWrapperWorld.cpp |
+++ b/Source/bindings/v8/DOMWrapperWorld.cpp |
@@ -41,12 +41,12 @@ |
#include "bindings/v8/WrapperTypeInfo.h" |
#include "core/dom/ExecutionContext.h" |
#include "wtf/HashTraits.h" |
-#include "wtf/MainThread.h" |
#include "wtf/StdLibExtras.h" |
namespace WebCore { |
unsigned DOMWrapperWorld::isolatedWorldCount = 0; |
+DOMWrapperWorld* DOMWrapperWorld::worldOfInitializingWindow = 0; |
PassRefPtr<DOMWrapperWorld> DOMWrapperWorld::create(int worldId, int extensionGroup) |
{ |
@@ -60,14 +60,6 @@ DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup) |
{ |
} |
-DOMWrapperWorld* DOMWrapperWorld::current(v8::Isolate* isolate) |
-{ |
- v8::Handle<v8::Context> context = isolate->GetCurrentContext(); |
- if (context.IsEmpty() || !toDOMWindow(context)) |
- return 0; |
- return world(context); |
-} |
- |
DOMWrapperWorld* DOMWrapperWorld::mainWorld() |
{ |
ASSERT(isMainThread()); |
@@ -209,9 +201,4 @@ void DOMWrapperWorld::clearIsolatedWorldContentSecurityPolicy(int worldId) |
isolatedWorldContentSecurityPolicies().remove(worldId); |
} |
-bool DOMWrapperWorld::contextHasCorrectPrototype(v8::Handle<v8::Context> context) |
-{ |
- return V8WindowShell::contextHasCorrectPrototype(context); |
-} |
- |
} // namespace WebCore |