Chromium Code Reviews| Index: Source/core/css/MediaQueryListListener.cpp |
| diff --git a/Source/core/css/MediaQueryListListener.cpp b/Source/core/css/MediaQueryListListener.cpp |
| index 1fc0375020a396d1fbbe2c65a241234b80411071..abcceb438b806e196837743e07b9c1e8219f5cf9 100644 |
| --- a/Source/core/css/MediaQueryListListener.cpp |
| +++ b/Source/core/css/MediaQueryListListener.cpp |
| @@ -21,7 +21,7 @@ |
| #include "core/css/MediaQueryListListener.h" |
| #include "bindings/core/v8/V8MediaQueryList.h" |
| -#include "bindings/v8/V8Binding.h" |
| +#include "bindings/v8/ScriptController.h" |
| #include <v8.h> |
| namespace WebCore { |
| @@ -39,7 +39,7 @@ void MediaQueryListListener::queryChanged(MediaQueryList* query) |
| return; |
| ScriptState::Scope scope(m_scriptState.get()); |
| v8::Handle<v8::Value> args[] = { toV8(query, m_scriptState->context()->Global(), m_scriptState->isolate()) }; |
| - invokeCallback(m_scriptState.get(), v8::Handle<v8::Function>::Cast(m_function.v8Value()), WTF_ARRAY_LENGTH(args), args); |
| + ScriptController::callFunction(m_scriptState.get()->executionContext(), v8::Handle<v8::Function>::Cast(m_function.v8Value()), m_scriptState.get()->context()->Global(), WTF_ARRAY_LENGTH(args), args, m_scriptState.get()->isolate()); |
|
haraken
2014/06/24 03:58:51
m_scriptState->context()->Global() will work.
m_s
|
| } |
| } |