summaryrefslogtreecommitdiffstats
path: root/WebKit/cf/WebCoreSupport
diff options
context:
space:
mode:
Diffstat (limited to 'WebKit/cf/WebCoreSupport')
-rw-r--r--WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp17
1 files changed, 1 insertions, 16 deletions
diff --git a/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp b/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp
index dc5a186..62fdd4d 100644
--- a/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp
+++ b/WebKit/cf/WebCoreSupport/WebInspectorClientCF.cpp
@@ -102,20 +102,5 @@ void WebInspectorClient::releaseFrontendPage()
bool WebInspectorClient::sendMessageToFrontend(const String& message)
{
- if (!m_frontendPage)
- return false;
-
- Frame* frame = m_frontendPage->mainFrame();
- if (!frame)
- return false;
-
- ScriptController* scriptController = frame->script();
- if (!scriptController)
- return false;
-
- String dispatchToFrontend("WebInspector.dispatchMessageFromBackend(");
- dispatchToFrontend += message;
- dispatchToFrontend += ");";
- scriptController->executeScript(dispatchToFrontend);
- return true;
+ return doDispatchMessageOnFrontendPage(m_frontendPage, message);
}