Re-factor Editor::unappliedEditing()
This patch changes |Editor::unappliedEditing()| to use |isNone()| predicate rather than checking |Document| equality of |Position| to simplify source code for improving code health. Since |correctVisibleSelection()| always returns |VisibileSlection| which is an empty or valid for specified |Document|, checking equality of |Document| between selection start and |frame.document()| is equivalent to empty selection check. BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2540613002 Cr-Commit-Position: refs/heads/master@{#434961}
Showing
Please register or sign in to comment