DescriptionIntroduce {next,previous}PositionOf() as replacement of {next,previous}() member functions in PositionAlgorithm
This patch introduces |{next,previous}PositionOf()| as replacement of
|{next, previous}()| member function in |PositionAlgorithm| template class
to simplify |PositionAlgorithm| class by isolating editing algorithm and
representation of a position for improving code health.
This patch also changes |PositionMoveType| as enum class and non-default
parameter to clear intention of each call sites. Though, we may want to drop
|CodePoint| movement.
Following patch will move them to "EditingUtilities.{cpp,h}".
BUG=518738
TEST=n/a; no behavior changes
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=200997
Patch Set 1 : 2015-08-21T15:25:59 #Patch Set 2 : 2015-08-21T17:36:45 Rebase #Patch Set 3 : 2015-08-22T00:12:04 Rebase #Messages
Total messages: 32 (16 generated)
|