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

Unified Diff: Source/core/editing/VisibleUnits.cpp

Issue 268363016: Improve the find word boundary performance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Add findWordEndBoundary Created 6 years, 5 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 | « no previous file | Source/platform/text/TextBoundaries.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/VisibleUnits.cpp
diff --git a/Source/core/editing/VisibleUnits.cpp b/Source/core/editing/VisibleUnits.cpp
index 46273a7ee38cc4ca179ecb2289f49d8c7f4c2014..c699c4207808deb9b199ef0769f859db4e06b06b 100644
--- a/Source/core/editing/VisibleUnits.cpp
+++ b/Source/core/editing/VisibleUnits.cpp
@@ -653,9 +653,7 @@ static unsigned endWordBoundary(const UChar* characters, unsigned length, unsign
return length;
}
needMoreContext = false;
- int start, end;
- findWordBoundary(characters, length, offset, &start, &end);
- return end;
+ return findWordEndBoundary(characters, length, offset);
}
VisiblePosition endOfWord(const VisiblePosition &c, EWordSide side)
« no previous file with comments | « no previous file | Source/platform/text/TextBoundaries.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698