| 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()) {
|
|
|