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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h

Issue 1604783002: ALL-IN-ONE: Optimization to previousBoundary() and nextBoundary() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@progressive_accumulator
Patch Set: Created 4 years, 11 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
Index: third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h b/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h
index a4f60bf7903e3246633aa05abbccf4155550b22a..732e84630dbf09f0f12721d73611009724a779bc 100644
--- a/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/WordAwareIterator.h
@@ -37,6 +37,10 @@ namespace blink {
class WordAwareIterator {
STACK_ALLOCATED();
public:
+
+ using PositionType = Position;
+ static const TextIteratorDirection direction = TextIteratorDirection::TextIteratorForward;
+
explicit WordAwareIterator(const Position& start, const Position& end);
~WordAwareIterator();

Powered by Google App Engine
This is Rietveld 408576698