DescriptionFix crash in CompositeEditCommand::cloneParagraphUnderNewElement().
The root cause is CompositeEditCommand::moveParagraphWithClones() passing
two positions |start| and |end| which do not follow the document order,
i.e. in some situations |start| is located after |end| because of
the difference in affinity.
This patch fixes this crash by normalizing |end| to |start| in such situations.
It also adds an ASSERT that checks the relationship between |start| and |end|.
BUG=345005
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=168160
Patch Set 1 #
Messages
Total messages: 8 (0 generated)
|