summaryrefslogtreecommitdiffstats
path: root/webkit/glue/context_menu_client_impl.cc
diff options
context:
space:
mode:
authorawalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 23:09:35 +0000
committerawalker@google.com <awalker@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-02-12 23:09:35 +0000
commit0f0981df65123740e2e873f33cec192c85218c79 (patch)
tree9d2f4f5dddab7a15212cc556fcc50717dc57a952 /webkit/glue/context_menu_client_impl.cc
parent2ecfe2aeacfbd30e38a309eb1c0f017d6ec5e1ac (diff)
downloadchromium_src-0f0981df65123740e2e873f33cec192c85218c79.zip
chromium_src-0f0981df65123740e2e873f33cec192c85218c79.tar.gz
chromium_src-0f0981df65123740e2e873f33cec192c85218c79.tar.bz2
Chromium side of WebKit merge to 40846
Darin: primary Brett: FYI Review URL: http://codereview.chromium.org/21243 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@9712 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/context_menu_client_impl.cc')
-rw-r--r--webkit/glue/context_menu_client_impl.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/webkit/glue/context_menu_client_impl.cc b/webkit/glue/context_menu_client_impl.cc
index dea8840..584cbe0 100644
--- a/webkit/glue/context_menu_client_impl.cc
+++ b/webkit/glue/context_menu_client_impl.cc
@@ -76,9 +76,9 @@ std::wstring GetMisspelledWord(const WebCore::ContextMenu* default_menu,
WebCore::VisiblePosition pos(inner_node->renderer()->positionForPoint(
hit_test_result.localPoint()));
- WebCore::Selection selection;
+ WebCore::VisibleSelection selection;
if (pos.isNotNull()) {
- selection = WebCore::Selection(pos);
+ selection = WebCore::VisibleSelection(pos);
selection.expandUsingGranularity(WebCore::WordGranularity);
}
@@ -96,7 +96,7 @@ std::wstring GetMisspelledWord(const WebCore::ContextMenu* default_menu,
// If misspelled word is empty, then that portion should not be selected.
// Set the selection to that position only, and do not expand.
if (misspelled_word_string.empty()) {
- selection = WebCore::Selection(pos);
+ selection = WebCore::VisibleSelection(pos);
selected_frame->selection()->setSelection(selection);
}