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

Issue 2127503002: Use RelocatablePosition in CompositeEditCommand::moveParagraphs (Closed)

Created:
4 years, 5 months ago by Xiaocheng
Modified:
4 years, 5 months ago
Reviewers:
tkent, yosin_UTC9
CC:
blink-reviews, chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use RelocatablePosition in CompositeEditCommand::moveParagraphs() Currently, CompositeEditCommand::moveParagraphs() uses a pair of VisiblePositions to keep track of original position of the moved paragraph after it's moved away. However, the VisiblePositions may be invalidated if their anchor nodes are moved out of document, causing crashes when the VisiblePositions are used later. It causes the failure of layout test: fast/text/first-letter-bad-line-boxes-crash.html This patch uses RelocatablePosition for the tracking purpose as a bug fix. BUG=581038 TEST=fast/text/first-letter-bad-line-boxes-crash.html Committed: https://crrev.com/14bd2353e018993e07996f570cd58c2b3520d40f Cr-Commit-Position: refs/heads/master@{#403879}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Use RelocatablePosition #

Total comments: 4

Patch Set 3 : Moved RelocatablePosition to a different CL #

Patch Set 4 : Change test expectation #

Patch Set 5 : rebased #

Patch Set 6 : Rebased at 201607061743 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -5 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 3 chunks +5 lines, -4 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 23 (10 generated)
Xiaocheng
PTAL.
4 years, 5 months ago (2016-07-05 10:12:29 UTC) #4
yosin_UTC9
Please prepare for writing test. ;-) https://codereview.chromium.org/2127503002/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/2127503002/diff/1/third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp#newcode1287 third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp:1287: Range* beforeParagraphTempRange = ...
4 years, 5 months ago (2016-07-06 01:52:25 UTC) #5
yosin_UTC9
On 2016/07/06 at 01:52:25, Yosi_UTC9 wrote: > Please prepare for writing test. ;-) > > ...
4 years, 5 months ago (2016-07-06 02:28:37 UTC) #6
Xiaocheng
On 2016/07/06 at 02:28:37, yosin wrote: > On 2016/07/06 at 01:52:25, Yosi_UTC9 wrote: > > ...
4 years, 5 months ago (2016-07-06 03:28:16 UTC) #7
Xiaocheng
PTAL. I'll upload RelocatablePosition in a separate patch if this one looks good.
4 years, 5 months ago (2016-07-06 05:17:01 UTC) #10
Xiaocheng
+tkent@ as core/ owner.
4 years, 5 months ago (2016-07-06 06:43:40 UTC) #12
yosin_UTC9
Seems good! Please split this patch into RelocatablePosition w/ test and movePargaphs w/ tests. https://codereview.chromium.org/2127503002/diff/20001/third_party/WebKit/Source/core/editing/RelocatablePosition.cpp ...
4 years, 5 months ago (2016-07-06 06:50:30 UTC) #13
Xiaocheng
PTAL. I don't think this CL requires any new test case, as its purpose is ...
4 years, 5 months ago (2016-07-06 08:45:22 UTC) #16
yosin_UTC9
lgtm Since, this patch fixes regression. Excluded test covers this case. Go ahead!
4 years, 5 months ago (2016-07-06 10:01:03 UTC) #17
Xiaocheng
Thanks!
4 years, 5 months ago (2016-07-06 10:02:23 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/2127503002/100001
4 years, 5 months ago (2016-07-06 10:02:31 UTC) #20
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 5 months ago (2016-07-06 10:46:00 UTC) #21
commit-bot: I haz the power
4 years, 5 months ago (2016-07-06 10:47:51 UTC) #23
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/14bd2353e018993e07996f570cd58c2b3520d40f
Cr-Commit-Position: refs/heads/master@{#403879}

Powered by Google App Engine
This is Rietveld 408576698