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

Issue 2955823002: Make VisiblePosition::FirstPositionInNode() to take const Node& instead of Node* (Closed)

Created:
3 years, 5 months ago by yosin_UTC9
Modified:
3 years, 5 months ago
Reviewers:
tkent
CC:
blink-reviews, blink-reviews-html_chromium.org, chromium-reviews, dglazkov+blink, krit, fmalita+watch_chromium.org, fs, gyuyoung2, kouhei+svg_chromium.org, pdr+svgwatchlist_chromium.org, rwlbuis, Stephen Chennney
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make VisiblePosition::FirstPositionInNode() to take const Node& instead of Node* This patch makes |VisiblePosition::FirstPositionInNode()| to take |const Node&| as |Position::FirstPositionInNode()| for improving code health. This is mechanical change: s/VisiblePositon::FirstPositionInNode(/VisiblePositon::FirstPositionInNode(*/ BUG=n/a TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2955823002 Cr-Commit-Position: refs/heads/master@{#482237} Committed: https://chromium.googlesource.com/chromium/src/+/cbf7050ee81b7ca0390e634cfd08f764f33f1307

Patch Set 1 : 2017-06-26T13:57:23 #

Total comments: 4

Patch Set 2 : 2017-06-26T17:50:06 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+23 lines, -21 lines) Patch
M third_party/WebKit/Source/core/editing/VisiblePosition.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisiblePosition.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsLine.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 4 chunks +5 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 1 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/TextControlElement.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/svg/SVGTextContentElement.cpp View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 19 (13 generated)
yosin_UTC9
PTAL Including core/editing, core/html and core/svg
3 years, 5 months ago (2017-06-26 07:55:17 UTC) #7
tkent
https://codereview.chromium.org/2955823002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2955823002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode1070 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:1070: VisiblePosition::FirstPositionInNode(*new_block), Is new_block always non-null? https://codereview.chromium.org/2955823002/diff/1/third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp File third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp (right): ...
3 years, 5 months ago (2017-06-26 08:08:22 UTC) #8
yosin_UTC9
PTAL Add DCHECKs https://codereview.chromium.org/2955823002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp File third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp (right): https://codereview.chromium.org/2955823002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode1070 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:1070: VisiblePosition::FirstPositionInNode(*new_block), On 2017/06/26 at 08:08:22, tkent ...
3 years, 5 months ago (2017-06-26 08:53:52 UTC) #11
tkent
lgtm
3 years, 5 months ago (2017-06-26 08:55:20 UTC) #12
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/2955823002/20001
3 years, 5 months ago (2017-06-26 09:27:38 UTC) #15
commit-bot: I haz the power
3 years, 5 months ago (2017-06-26 10:58:28 UTC) #19
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/cbf7050ee81b7ca0390e634cfd08...

Powered by Google App Engine
This is Rietveld 408576698