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

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

Issue 14334002: Delete WorldContextHandle in favor of DOMWrapperWorld (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 8 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/V8Binding.cpp
diff --git a/Source/bindings/v8/V8Binding.cpp b/Source/bindings/v8/V8Binding.cpp
index 3e61352e17114bff14380cd79b530983bd6f05fa..fbaa5b71dad03f0db2aac521d27a84f5a040db9b 100644
--- a/Source/bindings/v8/V8Binding.cpp
+++ b/Source/bindings/v8/V8Binding.cpp
@@ -49,7 +49,6 @@
#include "WebCoreMemoryInstrumentation.h"
#include "WorkerContext.h"
#include "WorkerScriptController.h"
-#include "WorldContextHandle.h"
#include "XPathNSResolver.h"
#include <wtf/MathExtras.h>
#include <wtf/MainThread.h>
@@ -330,18 +329,6 @@ Frame* toFrameIfNotDetached(v8::Handle<v8::Context> context)
return 0;
}
-v8::Local<v8::Context> toV8Context(ScriptExecutionContext* context, const WorldContextHandle& worldContext)
-{
- if (context->isDocument()) {
- if (Frame* frame = toDocument(context)->frame())
- return worldContext.adjustedContext(frame->script());
- } else if (context->isWorkerContext()) {
- if (WorkerScriptController* script = static_cast<WorkerContext*>(context)->script())
- return script->context();
- }
- return v8::Local<v8::Context>();
-}
-
v8::Local<v8::Context> toV8Context(ScriptExecutionContext* context, DOMWrapperWorld* world)
{
if (context->isDocument()) {

Powered by Google App Engine
This is Rietveld 408576698