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

Issue 2724333002: Get rid of VisibleSelection::firstRangeOf() (Closed)

Created:
3 years, 9 months ago by yosin_UTC9
Modified:
3 years, 9 months ago
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, chromium-reviews, dmazzoni+watch_chromium.org, dmazzoni, dtseng+watch_chromium.org, haraken, je_julie, kinuko+watch, nektar+watch_chromium.org, nektarios, yuzo+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Get rid of VisibleSelection::firstRangeOf() This patch gets rid of |VisibleSelection::firstRange()| by replacing call sites with |createRange(firstEphmeralRange(...))| to make |Range| object creation explicitly to prevent using temporary |Range| object for improving code health. BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2724333002 Cr-Commit-Position: refs/heads/master@{#454547} Committed: https://chromium.googlesource.com/chromium/src/+/f72ffad58839a50563b41ba70adf941b2633f1c1

Patch Set 1 : 2017-03-02T16:51:41 #

Total comments: 2

Patch Set 2 : 2017-03-03T13:18:27 DCHECK(!range) => DCHECK(range) #

Messages

Total messages: 24 (14 generated)
yosin_UTC9
PTAL Changes are in core/editing, module/accessibility and web/
3 years, 9 months ago (2017-03-02 10:10:25 UTC) #5
Xiaocheng
Everything else looks good except... https://codereview.chromium.org/2724333002/diff/1/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp File third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp (right): https://codereview.chromium.org/2724333002/diff/1/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp#newcode301 third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp:301: DCHECK(!range); Remove '!'
3 years, 9 months ago (2017-03-02 20:14:29 UTC) #8
tkent
> This patch gets rid of |VisibleSelection::firstRange()| by replacing call sites > with |createRange(firstEphmeralRange(...))| to ...
3 years, 9 months ago (2017-03-02 23:13:54 UTC) #9
yosin_UTC9
On 2017/03/02 at 23:13:54, tkent wrote: > > This patch gets rid of |VisibleSelection::firstRange()| by ...
3 years, 9 months ago (2017-03-03 04:22:06 UTC) #12
yosin_UTC9
PTAL https://codereview.chromium.org/2724333002/diff/1/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp File third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp (right): https://codereview.chromium.org/2724333002/diff/1/third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp#newcode301 third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp:301: DCHECK(!range); On 2017/03/02 at 20:14:29, Xiaocheng wrote: > ...
3 years, 9 months ago (2017-03-03 04:22:35 UTC) #13
Xiaocheng
lgtm
3 years, 9 months ago (2017-03-03 06:32:28 UTC) #16
tkent
lgtm
3 years, 9 months ago (2017-03-03 06:47:55 UTC) #17
dmazzoni
lgtm for accessibility
3 years, 9 months ago (2017-03-03 08:31:42 UTC) #19
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/2724333002/20001
3 years, 9 months ago (2017-03-03 08:39:47 UTC) #21
commit-bot: I haz the power
3 years, 9 months ago (2017-03-03 08:44:25 UTC) #24
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/f72ffad58839a50563b41ba70adf...

Powered by Google App Engine
This is Rietveld 408576698