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

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

Issue 137953010: Remove isolatedWorldForEnteredContext() and isolatedWorldForIsolate() (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 10 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/DOMWrapperWorld.cpp
diff --git a/Source/bindings/v8/DOMWrapperWorld.cpp b/Source/bindings/v8/DOMWrapperWorld.cpp
index 6b130ae9722e8ba8c779e2ce62132dc36a30fad9..250c3f1a979ccf0288b0b75265f771b07fa01900 100644
--- a/Source/bindings/v8/DOMWrapperWorld.cpp
+++ b/Source/bindings/v8/DOMWrapperWorld.cpp
@@ -67,11 +67,9 @@ DOMWrapperWorld::DOMWrapperWorld(int worldId, int extensionGroup)
DOMWrapperWorld* DOMWrapperWorld::current(v8::Isolate* isolate)
{
- ASSERT(isolate->InContext());
v8::Handle<v8::Context> context = isolate->GetCurrentContext();
- if (!toDOMWindow(context))
+ if (context.IsEmpty() || !contextHasCorrectPrototype(context))
return 0;
- ASSERT(isMainThread());
if (DOMWrapperWorld* world = isolatedWorld(context))
return world;
return mainWorld();
« no previous file with comments | « Source/bindings/tests/results/V8TestInterfaceEventConstructor.cpp ('k') | Source/bindings/v8/ScriptController.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698