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}
Showing
Please register or sign in to comment