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

Unified Diff: third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.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/BackwardsCharacterIterator.h
diff --git a/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.h b/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.h
index 4095b0e1b19fc1ce8eed9c0093afb6c33af04b64..d460230507892d58ba45c961e50ee769de85deb4 100644
--- a/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.h
+++ b/third_party/WebKit/Source/core/editing/iterators/BackwardsCharacterIterator.h
@@ -35,6 +35,10 @@ template <typename Strategy>
class BackwardsCharacterIteratorAlgorithm {
STACK_ALLOCATED();
public:
+
+ using PositionType = PositionTemplate<Strategy>;
+ static const TextIteratorDirection direction = TextIteratorDirection::TextIteratorBackward;
+
BackwardsCharacterIteratorAlgorithm(const PositionTemplate<Strategy>&, const PositionTemplate<Strategy>&, TextIteratorBehaviorFlags = TextIteratorDefaultBehavior);
void advance(int);

Powered by Google App Engine
This is Rietveld 408576698