diff options
Diffstat (limited to 'WebCore/bindings/v8/ScheduledAction.cpp')
-rw-r--r-- | WebCore/bindings/v8/ScheduledAction.cpp | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/WebCore/bindings/v8/ScheduledAction.cpp b/WebCore/bindings/v8/ScheduledAction.cpp index b1db8cf..44e8a37 100644 --- a/WebCore/bindings/v8/ScheduledAction.cpp +++ b/WebCore/bindings/v8/ScheduledAction.cpp @@ -50,7 +50,7 @@ ScheduledAction::ScheduledAction(v8::Handle<v8::Function> func, int argc, v8::Ha m_function = v8::Persistent<v8::Function>::New(func); #ifndef NDEBUG - V8Proxy::RegisterGlobalHandle(SCHEDULED_ACTION, this, m_function); + V8GCController::registerGlobalHandle(SCHEDULED_ACTION, this, m_function); #endif m_argc = argc; @@ -60,7 +60,7 @@ ScheduledAction::ScheduledAction(v8::Handle<v8::Function> func, int argc, v8::Ha m_argv[i] = v8::Persistent<v8::Value>::New(argv[i]); #ifndef NDEBUG - V8Proxy::RegisterGlobalHandle(SCHEDULED_ACTION, this, m_argv[i]); + V8GCController::registerGlobalHandle(SCHEDULED_ACTION, this, m_argv[i]); #endif } } else @@ -73,13 +73,13 @@ ScheduledAction::~ScheduledAction() return; #ifndef NDEBUG - V8Proxy::UnregisterGlobalHandle(this, m_function); + V8GCController::unregisterGlobalHandle(this, m_function); #endif m_function.Dispose(); for (int i = 0; i < m_argc; i++) { #ifndef NDEBUG - V8Proxy::UnregisterGlobalHandle(this, m_argv[i]); + V8GCController::unregisterGlobalHandle(this, m_argv[i]); #endif m_argv[i].Dispose(); } @@ -107,7 +107,7 @@ void ScheduledAction::execute(V8Proxy* proxy) LOCK_V8; v8::HandleScope handleScope; - v8::Local<v8::Context> v8Context = proxy->GetContext(); + v8::Local<v8::Context> v8Context = proxy->context(); if (v8Context.IsEmpty()) return; // JS may not be enabled. @@ -117,7 +117,7 @@ void ScheduledAction::execute(V8Proxy* proxy) // FIXME: Need to implement timeouts for preempting a long-running script. if (!m_function.IsEmpty() && m_function->IsFunction()) { - proxy->CallFunction(v8::Persistent<v8::Function>::Cast(m_function), v8Context->Global(), m_argc, m_argv); + proxy->callFunction(v8::Persistent<v8::Function>::Cast(m_function), v8Context->Global(), m_argc, m_argv); Document::updateStyleForAllDocuments(); } else proxy->evaluate(m_code, 0); @@ -136,7 +136,7 @@ void ScheduledAction::execute(WorkerContext* workerContext) if (!m_function.IsEmpty() && m_function->IsFunction()) { LOCK_V8; v8::HandleScope handleScope; - v8::Local<v8::Context> v8Context = scriptController->proxy()->GetContext(); + v8::Local<v8::Context> v8Context = scriptController->proxy()->context(); ASSERT(!v8Context.IsEmpty()); v8::Context::Scope scope(v8Context); m_function->Call(v8Context->Global(), m_argc, m_argv); |