DescriptionGet rid of a redundant createLegacyEditingPosition() call in PositionAlgorithm<Strategy>::downstream()
|createLegacyEditingPosition()|, which returns non-legacy editing position if
anchor node returns false for |editingIgnoresContent(node)|, call at L722 is
redundant because it takes a node object, which is |!editingIgnoresContent()|
by if-statement at L708.
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/1262503010, which replaces
|createLegacyEditingPosition()| in |PositionAlgorithm<Strategy>::upstream()|.
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=199948
Patch Set 1 : 2015-08-04T13:41:34 #
Messages
Total messages: 6 (2 generated)
|