DescriptionUse 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 #
Messages
Total messages: 17 (12 generated)
|