DescriptionAvoid duplicate functions/code in core/editing: computeDistance
While experimenting with unity builds I encountered a few duplicate
symbols and functions in core/editing. This patch renames, moves
and unifies them.
Several classes use computeDistanceToLeftGraphemeBoundary and instead
of copying the whole function, make a single copy in EditingUtilities.
Also move computeDistanceToRightGraphemeBoundary since those two functions
are too similar to split up.
BUG=708949
R=yosin@chromium.org
Review-Url: https://codereview.chromium.org/2802953002
Cr-Commit-Position: refs/heads/master@{#462420}
Committed: https://chromium.googlesource.com/chromium/src/+/b6ba28d755eb8cbcc5dba2f414d10cd2e434f6d8
Patch Set 1 #
Messages
Total messages: 9 (5 generated)
|