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

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

Issue 176963017: Remove WrapperWorldType from V8 binding (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/V8Binding.h ('k') | Source/bindings/v8/V8DOMConfiguration.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/bindings/v8/V8Binding.cpp
diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
index dbb1a8ddb39ac100822cdad8a8be5b05e25781e1..04d837208ca7c2f0b89c07d25c89d9d1ac128fca 100644
--- a/Source/bindings/v8/V8Binding.cpp
+++ b/Source/bindings/v8/V8Binding.cpp
@@ -611,25 +611,6 @@ void crashIfV8IsDead()
}
}
-WrapperWorldType worldType(v8::Isolate* isolate)
-{
- V8PerIsolateData* data = V8PerIsolateData::from(isolate);
- if (data->isMainThread())
- return worldTypeInMainThread(isolate);
- return WorkerWorld;
-}
-
-WrapperWorldType worldTypeInMainThread(v8::Isolate* isolate)
-{
- if (!DOMWrapperWorld::isolatedWorldsExist())
- return MainWorld;
- ASSERT(!isolate->GetEnteredContext().IsEmpty());
- DOMWrapperWorld* world = DOMWrapperWorld::world(isolate->GetEnteredContext());
- if (world->isMainWorld())
- return MainWorld;
- return IsolatedWorld;
-}
-
v8::Handle<v8::Function> getBoundFunction(v8::Handle<v8::Function> function)
{
v8::Handle<v8::Value> boundFunction = function->GetBoundFunction();
« no previous file with comments | « Source/bindings/v8/V8Binding.h ('k') | Source/bindings/v8/V8DOMConfiguration.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698