Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(522)

Unified Diff: Source/core/css/MediaQueryListListener.cpp

Issue 349183006: Use ScriptController to call callback in MediaQueryListListener (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Patch for landing Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/core/css/MediaQueryListListener.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/css/MediaQueryListListener.cpp
diff --git a/Source/core/css/MediaQueryListListener.cpp b/Source/core/css/MediaQueryListListener.cpp
index 1fc0375020a396d1fbbe2c65a241234b80411071..16ddd1968538f73c199393cc8547b5dabaafb234 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->executionContext(), v8::Handle<v8::Function>::Cast(m_function.v8Value()), m_scriptState->context()->Global(), WTF_ARRAY_LENGTH(args), args, m_scriptState->isolate());
}
}
« no previous file with comments | « Source/core/css/MediaQueryListListener.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698