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

Issue 2366693005: Mark paragraph-related functions deprecated in VisibleUnits (Closed)

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

Description

Mark paragraph-related functions deprecated in VisibleUnits This patch marks the following functions in VisibleUnits.cpp deprecated because they accept invalid VisiblePositions as input: - startOfParagraph - endOfParagraph - isStartOfParagraph - isEndOfParagraph - inSameParagraph - startOfNextParagraph This patch also creates the non-deprecated versions of these functions that requires valid VisiblePositions as input. Calls of these functions in editing/commands/ are switched to 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/58d3e91f04c7eb7847dade2b3f427da26dfd7379 Cr-Commit-Position: refs/heads/master@{#421063}

Patch Set 1 #

Patch Set 2 : Exclude EditingUlities from using fooParagraphDeprecated #

Total comments: 4

Patch Set 3 : Add output for DCHECK #

Unified diffs Side-by-side diffs Delta from patch set Stats (+198 lines, -99 lines) Patch
M third_party/WebKit/Source/core/editing/VisibleUnits.h View 1 chunk +15 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/VisibleUnits.cpp View 1 2 7 chunks +89 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommand.cpp View 5 chunks +7 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ApplyStyleCommand.cpp View 2 chunks +5 lines, -5 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 10 chunks +14 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/DeleteSelectionCommand.cpp View 6 chunks +8 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/FormatBlockCommand.cpp View 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/IndentOutdentCommand.cpp View 6 chunks +11 lines, -11 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 8 chunks +14 lines, -14 lines 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 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/ReplaceSelectionCommand.cpp View 18 chunks +24 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/TypingCommand.cpp View 3 chunks +3 lines, -3 lines 0 comments Download

Messages

Total messages: 35 (28 generated)
Xiaocheng
PTAL.
4 years, 3 months ago (2016-09-23 04:02:56 UTC) #6
yosin_UTC9
lgtm w/ nits https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1778 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1778: DCHECK(a.isValid()); nit: Could you add "<< ...
4 years, 2 months ago (2016-09-26 01:29:09 UTC) #17
Xiaocheng
https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1778 third_party/WebKit/Source/core/editing/VisibleUnits.cpp:1778: DCHECK(a.isValid()); On 2016/09/26 at 01:29:09, Yosi_UTC9 wrote: > nit: ...
4 years, 2 months ago (2016-09-26 01:36:14 UTC) #18
yosin_UTC9
On 2016/09/26 at 01:36:14, xiaochengh wrote: > https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp > File third_party/WebKit/Source/core/editing/VisibleUnits.cpp (right): > > https://codereview.chromium.org/2366693005/diff/20001/third_party/WebKit/Source/core/editing/VisibleUnits.cpp#newcode1778 ...
4 years, 2 months ago (2016-09-26 05:50:54 UTC) #27
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/2366693005/40001
4 years, 2 months ago (2016-09-26 23:39:59 UTC) #32
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 2 months ago (2016-09-27 01:04:55 UTC) #33
commit-bot: I haz the power
4 years, 2 months ago (2016-09-27 01:07:36 UTC) #35
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/58d3e91f04c7eb7847dade2b3f427da26dfd7379
Cr-Commit-Position: refs/heads/master@{#421063}

Powered by Google App Engine
This is Rietveld 408576698