Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(148)

Issue 2712223002: Get rid of redundant functions updateIfNeeded() in FrameSelection and SelectionEditor (Closed)

Created:
3 years, 10 months ago by yosin_UTC9
Modified:
3 years, 9 months ago
Reviewers:
tkent, yoichio, Xiaocheng
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+0 lines, -65 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.h View 1 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 chunk +0 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelectionTest.cpp View 1 chunk +0 lines, -27 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionEditor.h View 1 chunk +0 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionEditor.cpp View 1 chunk +0 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/EditorCommand.cpp View 4 chunks +0 lines, -16 lines 0 comments Download

Messages

Total messages: 20 (15 generated)
yosin_UTC9
PTAL
3 years, 10 months ago (2017-02-25 02:15:49 UTC) #7
Xiaocheng
Almost good with the code change. https://codereview.chromium.org/2712223002/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp File third_party/WebKit/Source/core/editing/FrameSelection.cpp (left): https://codereview.chromium.org/2712223002/diff/1/third_party/WebKit/Source/core/editing/FrameSelection.cpp#oldcode1154 third_party/WebKit/Source/core/editing/FrameSelection.cpp:1154: void FrameSelection::updateIfNeeded() { ...
3 years, 10 months ago (2017-02-25 02:45:46 UTC) #8
yoichio
lgtm
3 years, 9 months ago (2017-02-27 01:58:31 UTC) #11
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2712223002/20001
3 years, 9 months ago (2017-02-27 02:11:53 UTC) #17
commit-bot: I haz the power
3 years, 9 months ago (2017-02-27 03:42:09 UTC) #20
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/baa654ed78967c046f3ea8f8c359...

Powered by Google App Engine
This is Rietveld 408576698