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

Issue 2850773003: Use RelocatablePosition in CompositeEditCommand::MoveParagraphWithClones (Closed)

Created:
3 years, 7 months ago by Xiaocheng
Modified:
3 years, 7 months ago
Reviewers:
tkent, kojii
CC:
blink-reviews, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Use RelocatablePosition in CompositeEditCommand::MoveParagraphWithClones Clusterfuzz found a sample where CompositeEditCommand::MoveParagraphWithClones() moves |before_paragraph| out of the DOM tree after moving the paragraph. This patch uses RelocatablePosition to track |before_paragraph| and |after_paragraph| so that the positions we track are always connected. Note: CompositeEditCommand::MoveParagraphs() is already using RelocatablePosition to track positions before and after the moved paragraphs. BUG=712510 TEST=ApplyBlockElementCommandTest.IndentHeadingIntoBlockquote Review-Url: https://codereview.chromium.org/2850773003 Cr-Commit-Position: refs/heads/master@{#468278} Committed: https://chromium.googlesource.com/chromium/src/+/a4e8fc5aeabab79dd84a7ced4b7c433a428864a5

Patch Set 1 #

Patch Set 2 : Remove yosin's TODO #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -11 lines) Patch
M third_party/WebKit/Source/core/editing/commands/ApplyBlockElementCommandTest.cpp View 1 chunk +31 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/editing/commands/CompositeEditCommand.cpp View 1 2 chunks +8 lines, -11 lines 0 comments Download

Messages

Total messages: 17 (12 generated)
Xiaocheng
PTAL, as yosin@ and tkent@ are both OOO...
3 years, 7 months ago (2017-04-29 03:52:09 UTC) #7
kojii
tkent@, PTAL. I can only RS this change.
3 years, 7 months ago (2017-05-01 01:57:04 UTC) #11
tkent
lgtm
3 years, 7 months ago (2017-05-01 02:19:32 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/2850773003/20001
3 years, 7 months ago (2017-05-01 02:30:29 UTC) #14
commit-bot: I haz the power
3 years, 7 months ago (2017-05-01 04:11:54 UTC) #17
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://chromium.googlesource.com/chromium/src/+/a4e8fc5aeabab79dd84a7ced4b7c...

Powered by Google App Engine
This is Rietveld 408576698