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

Unified Diff: Source/bindings/v8/DOMWrapperWorld.cpp

Issue 182903003: Make DOMWrapperWorld::current() callable from workers (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: 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
« no previous file with comments | « Source/bindings/v8/DOMWrapperWorld.h ('k') | Source/bindings/v8/PageScriptDebugServer.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « Source/bindings/v8/DOMWrapperWorld.h ('k') | Source/bindings/v8/PageScriptDebugServer.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698