Index: Source/core/css/MediaQueryListListener.cpp |
diff --git a/Source/core/css/MediaQueryListListener.cpp b/Source/core/css/MediaQueryListListener.cpp |
index 50f38ee019603c03a5c8381abcef52eb079ef2cf..946b2f5c7c8cb2ae54c6d2d1704c71631a096522 100644 |
--- a/Source/core/css/MediaQueryListListener.cpp |
+++ b/Source/core/css/MediaQueryListListener.cpp |
@@ -20,10 +20,6 @@ |
#include "config.h" |
#include "core/css/MediaQueryListListener.h" |
-#include "bindings/core/v8/ScriptController.h" |
-#include "bindings/core/v8/V8MediaQueryList.h" |
-#include <v8.h> |
- |
namespace blink { |
MediaQueryListListener::MediaQueryListListener() |
@@ -31,28 +27,8 @@ MediaQueryListListener::MediaQueryListListener() |
// only for use by subclasses |
} |
-// FIXME: Rename MediaQueryListListener to something more generic, once it's no longer Web exposed. |
-MediaQueryListListener::MediaQueryListListener(ScriptState* scriptState, const ScriptValue& function) |
- : m_scriptState(scriptState) |
- , m_function(function) |
-{ |
- ASSERT(m_function.isFunction()); |
-} |
- |
MediaQueryListListener::~MediaQueryListListener() |
{ |
} |
-void MediaQueryListListener::call() |
-{ |
- if (!m_query) |
- return; |
- |
- if (m_scriptState->contextIsEmpty()) |
- return; |
- ScriptState::Scope scope(m_scriptState.get()); |
- v8::Handle<v8::Value> args[] = { toV8(m_query.get(), m_scriptState->context()->Global(), m_scriptState->isolate()) }; |
- 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()); |
-} |
- |
} |