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

Issue 2709973005: Get rid of useless function VisibleSelection::updateIfNeeded() (Closed)

Created:
3 years, 10 months ago by yosin_UTC9
Modified:
3 years, 10 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 useless function VisibleSelection::updateIfNeeded() This patch gets rid of useless function |VisibleSelection::updateIfNeeded()| by replacing to equivalent expression to reduce source code size for improving code health and preparation of making |VisibleSelection| immutable. vs.updateIfNeeded() == vs = createVisibleSelection(vs.asSelection()) BUG=513568 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2709973005 Cr-Commit-Position: refs/heads/master@{#453058} Committed: https://chromium.googlesource.com/chromium/src/+/c05388c6fc37ef12cf3b11df405c8dbc631b8f70

Patch Set 1 : 2017-02-24T18:51:43 #

Patch Set 2 : 2017-02-24T19:18:36 #

Total comments: 2

Patch Set 3 : 2017-02-25T10:01:23 Do not remove FrameSelection::updateIfNeeded() #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -19 lines) Patch
M third_party/WebKit/Source/core/editing/Editor.cpp View 1 2 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.h View 1 chunk +0 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelection.cpp View 1 chunk +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 20 (14 generated)
yosin_UTC9
PTAL
3 years, 10 months ago (2017-02-24 10:24:53 UTC) #6
Xiaocheng
https://codereview.chromium.org/2709973005/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (left): https://codereview.chromium.org/2709973005/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp#oldcode159 third_party/WebKit/Source/core/editing/Editor.cpp:159: frame().selection().updateIfNeeded(); Is this a mis-removal?
3 years, 10 months ago (2017-02-24 18:06:06 UTC) #9
yosin_UTC9
PTAL https://codereview.chromium.org/2709973005/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp File third_party/WebKit/Source/core/editing/Editor.cpp (left): https://codereview.chromium.org/2709973005/diff/20001/third_party/WebKit/Source/core/editing/Editor.cpp#oldcode159 third_party/WebKit/Source/core/editing/Editor.cpp:159: frame().selection().updateIfNeeded(); On 2017/02/24 at 18:06:06, Xiaocheng wrote: > ...
3 years, 10 months ago (2017-02-25 01:02:03 UTC) #12
Xiaocheng
lgtm
3 years, 10 months ago (2017-02-25 01:58:14 UTC) #16
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/2709973005/40001
3 years, 10 months ago (2017-02-25 01:58:23 UTC) #17
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 03:36:17 UTC) #20
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/chromium/src/+/c05388c6fc37ef12cf3b11df405c...

Powered by Google App Engine
This is Rietveld 408576698