Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(962)

Unified Diff: third_party/WebKit/WebCore/platform/ContextMenu.cpp

Issue 21184: WebKit merge 40722:40785 (part 1) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « third_party/WebKit/WebCore/page/Frame.cpp ('k') | third_party/WebKit/WebCore/platform/KURL.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « third_party/WebKit/WebCore/page/Frame.cpp ('k') | third_party/WebKit/WebCore/platform/KURL.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698