Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / Source / bindings / core / v8 / ScheduledAction.cpp
index b7ce1d3..6bf05b2 100644 (file)
@@ -89,7 +89,7 @@ void ScheduledAction::execute(ExecutionContext* context)
 
 void ScheduledAction::execute(LocalFrame* frame)
 {
-    if (m_scriptState->contextIsValid()) {
+    if (!m_scriptState->contextIsValid()) {
         WTF_LOG(Timers, "ScheduledAction::execute %p: context is empty", this);
         return;
     }
@@ -112,7 +112,7 @@ void ScheduledAction::execute(LocalFrame* frame)
 void ScheduledAction::execute(WorkerGlobalScope* worker)
 {
     ASSERT(worker->thread()->isCurrentThread());
-    ASSERT(!m_scriptState->contextIsValid());
+    ASSERT(m_scriptState->contextIsValid());
     if (!m_function.isEmpty()) {
         ScriptState::Scope scope(m_scriptState.get());
         Vector<v8::Handle<v8::Value> > info;