diff options
Diffstat (limited to 'webkit/port/bindings/v8/V8WorkerContextCustom.cpp')
-rw-r--r-- | webkit/port/bindings/v8/V8WorkerContextCustom.cpp | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/webkit/port/bindings/v8/V8WorkerContextCustom.cpp b/webkit/port/bindings/v8/V8WorkerContextCustom.cpp index 14d7b80..e646bb5 100644 --- a/webkit/port/bindings/v8/V8WorkerContextCustom.cpp +++ b/webkit/port/bindings/v8/V8WorkerContextCustom.cpp @@ -33,16 +33,15 @@ #include "v8_binding.h" #include "v8_custom.h" -#include "v8_events.h" #include "v8_proxy.h" #include "WorkerContextExecutionProxy.h" -#include "V8Document.h" -#include "V8HTMLDocument.h" - #include "ExceptionCode.h" #include "MessagePort.h" #include "NotImplemented.h" +#include "V8Document.h" +#include "V8HTMLDocument.h" +#include "V8WorkerContextEventListener.h" #include "WorkerContext.h" namespace WebCore { @@ -98,7 +97,7 @@ ACCESSOR_GETTER(WorkerContextOnmessage) { if (imp->onmessage()) { V8WorkerContextEventListener* listener = static_cast<V8WorkerContextEventListener*>(imp->onmessage()); - v8::Local<v8::Object> v8_listener = listener->GetListenerObject(); + v8::Local<v8::Object> v8_listener = listener->getListenerObject(); return v8_listener; } return v8::Undefined(); @@ -112,7 +111,7 @@ ACCESSOR_SETTER(WorkerContextOnmessage) { static_cast<V8WorkerContextEventListener*>(imp->onmessage()); if (value->IsNull()) { if (imp->onmessage()) { - v8::Local<v8::Object> old_v8_listener = old_listener->GetListenerObject(); + v8::Local<v8::Object> old_v8_listener = old_listener->getListenerObject(); RemoveHiddenDependency(info.Holder(), old_v8_listener); } @@ -126,7 +125,7 @@ ACCESSOR_SETTER(WorkerContextOnmessage) { if (listener) { if (old_listener) { v8::Local<v8::Object> old_v8_listener = - old_listener->GetListenerObject(); + old_listener->getListenerObject(); RemoveHiddenDependency(info.Holder(), old_v8_listener); } @@ -161,6 +160,12 @@ v8::Handle<v8::Value> ClearTimeoutOrInterval(const v8::Arguments& args) { return v8::Undefined(); } +CALLBACK_FUNC_DECL(WorkerContextImportScripts) { + INC_STATS(L"DOM.WorkerContext.importScripts()"); + notImplemented(); + return v8::Undefined(); +} + CALLBACK_FUNC_DECL(WorkerContextSetTimeout) { INC_STATS(L"DOM.WorkerContext.setTimeout()"); return SetTimeoutOrInterval(args, true); |