DescriptionGet rid of a redundant createLegacyEditingPosition() call in PositionAlgorithm<Strategy>::upstream()
|createLegacyEditingPosition()|, which returns non-legacy editing position if
anchor node returns false for |editingIgnoresContent(node)|, call at L845 is
redundant because it takes a node object, which is |!editingIgnoresContent()|
by if-statement at L835.
This patch replaces a this redundant usage of |createLegacyEditingPosition()| to
|PositionAlgorithm<Strategy>| constructor for improving code health.
This patch is a similar to http://crrev.com/1266413003, which replaces
|createLegacyEditingPosition()| in |PositionAlgorithm<Strategy>::downstream()|.
This patch is a preparation of getting rid of legacy editing position.
BUG=513114
TEST=n/a; no behavior changes
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=199954
Patch Set 1 : 2015-08-04T13:43:22 #
Messages
Total messages: 9 (2 generated)
|