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

Unified Diff: Source/web/ContextMenuClientImpl.cpp

Issue 23618052: TextBreakIterator should use the C++ icu API instead of the C one (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Downcast to icu::RuleBasedBreakIterator Created 7 years, 2 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 | « Source/platform/text/TextBreakIteratorICU.cpp ('k') | Source/wtf/unicode/icu/UnicodeIcu.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/web/ContextMenuClientImpl.cpp
diff --git a/Source/web/ContextMenuClientImpl.cpp b/Source/web/ContextMenuClientImpl.cpp
index 112d4f4ca9dc3aa52e674e4ef893d81970908ba6..3f3cb0c1f5c7a57cff5312e2edf01b2ed7fa79ae 100644
--- a/Source/web/ContextMenuClientImpl.cpp
+++ b/Source/web/ContextMenuClientImpl.cpp
@@ -100,7 +100,7 @@ static WebURL urlFromFrame(Frame* frame)
static bool isASingleWord(const String& text)
{
TextBreakIterator* it = wordBreakIterator(text, 0, text.length());
- return it && textBreakNext(it) == static_cast<int>(text.length());
+ return it && it->next() == static_cast<int>(text.length());
}
// Helper function to get misspelled word on which context menu
« no previous file with comments | « Source/platform/text/TextBreakIteratorICU.cpp ('k') | Source/wtf/unicode/icu/UnicodeIcu.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698