Index: third_party/WebKit/WebCore/platform/ContextMenu.cpp |
=================================================================== |
--- third_party/WebKit/WebCore/platform/ContextMenu.cpp (revision 9391) |
+++ third_party/WebKit/WebCore/platform/ContextMenu.cpp (working copy) |
@@ -192,7 +192,7 @@ |
static bool selectionContainsPossibleWord(Frame* frame) |
{ |
// Current algorithm: look for a character that's not just a separator. |
- for (TextIterator it(frame->selection()->toRange().get()); !it.atEnd(); it.advance()) { |
+ for (TextIterator it(frame->selection()->toNormalizedRange().get()); !it.atEnd(); it.advance()) { |
int length = it.length(); |
const UChar* characters = it.characters(); |
for (int i = 0; i < length; ++i) |