DescriptionGet rid of redundant functions updateIfNeeded() in FrameSelection and SelectionEditor
This patch gets rid of |updateIfNeeded()| in |FrameSeleciton| and
|SelectionEditor| to reduce source code size for improving.
Before patch[1], |updateIfNeeded()| is used for doing canonicalization for
existing |VisibleSeleciton|, which is canonicalized before layout tree
modification.
After patch[1], canonicalization is done in |computeVisibleSelectionXXX()|,
which is only the way to get |VisibleSeleciton| from |FrameSelection|.
Thus, callers don't need to call |updateIfNeeded()| explicitly and calling
|updateIfNeeded()| is now redundant.
[1] http://crrev.com/2680943004 Make FrameSelection to hold non-canonicalized
positions
BUG=n/a
TEST=n/a; no behavior changes
Review-Url: https://codereview.chromium.org/2712223002
Cr-Commit-Position: refs/heads/master@{#453140}
Committed: https://chromium.googlesource.com/chromium/src/+/baa654ed78967c046f3ea8f8c35948d605ee1a9c
Patch Set 1 : 2017-02-25T10:59:38 #
Total comments: 1
Patch Set 2 : 2017-02-27T11:10:27 Remove updateIfNeeded() from FrameSeleciton.h #
Messages
Total messages: 20 (15 generated)
|