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

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

Issue 1310433004: [Editing] Modify mostForward/BackwardCaretPosition naming confusion. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 5 years, 4 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/core/editing/VisibleUnits.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/editing/Position.cpp
diff --git a/Source/core/editing/Position.cpp b/Source/core/editing/Position.cpp
index 635cc65accb70b160bb612c63ddae4d901c7af88..884fd59342a29e3d1abd4a60eb2fb8fd72c2170b 100644
--- a/Source/core/editing/Position.cpp
+++ b/Source/core/editing/Position.cpp
@@ -483,13 +483,13 @@ bool PositionAlgorithm<Strategy>::atEndOfTree() const
template <typename Strategy>
PositionAlgorithm<Strategy> PositionAlgorithm<Strategy>::upstream(EditingBoundaryCrossingRule rule) const
{
- return mostForwardCaretPosition(*this, rule);
+ return mostBackwardCaretPosition(*this, rule);
}
template <typename Strategy>
PositionAlgorithm<Strategy> PositionAlgorithm<Strategy>::downstream(EditingBoundaryCrossingRule rule) const
{
- return mostBackwardCaretPosition(*this, rule);
+ return mostForwardCaretPosition(*this, rule);
}
// TODO(yosin) We should move |isVisuallyEquivalentCandidate()| to
« no previous file with comments | « no previous file | Source/core/editing/VisibleUnits.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698