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

Issue 2952983002: Make Position::FirstPositionInNode() to take const Node& instead of Node* (Closed)

Created:
3 years, 6 months ago by yosin_UTC9
Modified:
3 years, 6 months ago
Reviewers:
yoichio, Xiaocheng
CC:
Xiaocheng, blink-reviews, blink-reviews-style_chromium.org, chromium-reviews, groby+blinkspell_chromium.org, timvolodine
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Make Position::FirstPositionInNode() to take const Node& instead of Node* This patch makes |Position::FirstPositionInNode()| to take |const Node&| instead of |Node*| since |Node| parameter can not be nullptr for improving code health. This patch is a preparation of make |Position| to hold |const Node&|[1] and similar to the patch[2] which change |BeforeNode()|. [1] http://crbug.com/735327 Position should hold const Node instead of Node [2] http://crbug.com/2950053002: Make Position::BeforeNode() to take const Node& instead of Node* BUG=734849 TEST=n/a; no behavior changes Review-Url: https://codereview.chromium.org/2952983002 Cr-Commit-Position: refs/heads/master@{#481810} Committed: https://chromium.googlesource.com/chromium/src/+/6987d19cbf857ea5158f967d304b0572048c7199

Patch Set 1 : 2017-06-22T14:28:55 #

Patch Set 2 : 2017-06-23T10:37:43 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -73 lines) Patch
M third_party/WebKit/Source/core/editing/EditingUtilities.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EditingUtilitiesTest.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/EphemeralRange.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/FrameSelection.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/Position.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/Position.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/PositionIteratorTest.cpp View 1 6 chunks +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/editing/PositionTest.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SelectionEditor.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/SurroundingText.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/TextFinder.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisiblePosition.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleSelectionTest.cpp View 1 5 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsLine.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnitsTest.cpp View 1 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 1 3 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertLineBreakCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertListCommand.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertParagraphSeparatorCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/InsertTextCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 1 4 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 1 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/iterators/SearchBuffer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/Serialization.cpp View 1 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/StyledMarkupAccumulator.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/StyledMarkupSerializer.cpp View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/serializers/StyledMarkupSerializerTest.cpp View 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/ColdModeSpellCheckRequester.cpp View 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/spellcheck/SpellChecker.cpp View 2 chunks +2 lines, -2 lines 0 comments Download

Messages

Total messages: 18 (12 generated)
yosin_UTC9
PTAL
3 years, 6 months ago (2017-06-22 07:40:21 UTC) #7
Xiaocheng
lgtm. Thanks for making this big patch, which needs quite some efforts!
3 years, 6 months ago (2017-06-22 18:11:51 UTC) #8
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/2952983002/1
3 years, 6 months ago (2017-06-23 00:50:13 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/471740)
3 years, 6 months ago (2017-06-23 00:57:21 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/2952983002/20001
3 years, 6 months ago (2017-06-23 01:39:21 UTC) #15
commit-bot: I haz the power
3 years, 6 months ago (2017-06-23 05:34:28 UTC) #18
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/6987d19cbf857ea5158f967d304b...

Powered by Google App Engine
This is Rietveld 408576698