Index: Source/web/EditorClientImpl.cpp |
diff --git a/Source/web/EditorClientImpl.cpp b/Source/web/EditorClientImpl.cpp |
index 8a441518ebe122f048958f76a3284bb1397d2dab..28dab1c28e94f9e6a08726f7dbed7a38fac40dbf 100644 |
--- a/Source/web/EditorClientImpl.cpp |
+++ b/Source/web/EditorClientImpl.cpp |
@@ -27,6 +27,7 @@ |
#include "config.h" |
#include "EditorClientImpl.h" |
+#include "WebFrameClient.h" |
#include "WebFrameImpl.h" |
#include "WebPermissionClient.h" |
#include "WebViewClient.h" |
@@ -46,10 +47,11 @@ EditorClientImpl::~EditorClientImpl() |
{ |
} |
-void EditorClientImpl::respondToChangedSelection(WebCore::SelectionType selectionType) |
+void EditorClientImpl::respondToChangedSelection(LocalFrame* frame, WebCore::SelectionType selectionType) |
{ |
- if (m_webView->client()) |
- m_webView->client()->didChangeSelection(selectionType != WebCore::RangeSelection); |
+ WebFrameImpl* webFrame = WebFrameImpl::fromFrame(frame); |
+ if (webFrame->client()) |
+ webFrame->client()->didChangeSelection(selectionType != WebCore::RangeSelection); |
} |
void EditorClientImpl::respondToChangedContents() |