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

Issue 2371793003: Mark calls of {previous,next}PositionOf with invalid VisiblePosition deprecated (Closed)

Created:
4 years, 2 months ago by Xiaocheng
Modified:
4 years, 2 months ago
Reviewers:
yosin_UTC9
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Mark calls of {previous,next}PositionOf with invalid VisiblePosition deprecated This patch marks functions {previous,next}PositionOf in VisibleUnits.cpp deprecated because they take invalid VisiblePositions as input. This patch also creates the non-deprecated versions of these functions that requires valid VisiblePositions as input. Callers passing invalid VisiblePositions have been switched to using the deprecated functions. Calls in other places have ensured valid VisiblePositions as input, and hence, are calling the non-deprecated functions after this patch. BUG=648949 Committed: https://crrev.com/4ebc66c03af35f9294189171d84ebf7c4ba348a3 Cr-Commit-Position: refs/heads/master@{#421414}

Patch Set 1 #

Patch Set 2 : Rebased #

Total comments: 4

Patch Set 3 : Prevent code copying #

Unified diffs Side-by-side diffs Delta from patch set Stats (+65 lines, -24 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.h View 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 2 chunks +53 lines, -21 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 1 chunk +2 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

Messages

Total messages: 24 (17 generated)
Xiaocheng
PTAL.
4 years, 2 months ago (2016-09-27 09:16:49 UTC) #9
yosin_UTC9
Let's avoid copy & paste. https://codereview.chromium.org/2371793003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2371793003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode3420 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:3420: static VisiblePositionTemplate<Strategy> nextPositionOfAlgorithmDeprecated(const VisiblePositionTemplate<Strategy>& ...
4 years, 2 months ago (2016-09-27 10:05:39 UTC) #10
Xiaocheng
Thanks for the good idea. Updated & PTAL. https://codereview.chromium.org/2371793003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2371793003/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode3420 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:3420: static ...
4 years, 2 months ago (2016-09-27 12:27:08 UTC) #16
yosin_UTC9
lgtm
4 years, 2 months ago (2016-09-28 01:14:13 UTC) #20
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/2371793003/40001
4 years, 2 months ago (2016-09-28 01:14:45 UTC) #21
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-28 01:20:29 UTC) #22
commit-bot: I haz the power
4 years, 2 months ago (2016-09-28 01:23:27 UTC) #24
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/4ebc66c03af35f9294189171d84ebf7c4ba348a3
Cr-Commit-Position: refs/heads/master@{#421414}

Powered by Google App Engine
This is Rietveld 408576698