WebCore:
Reviewed by Maciej and John.
<rdar://problem/
5452675> CrashTracer: [USER] 10 crashes in Mail at com.apple.WebCore: WebCore::Node::nodeIndex const + 6
* editing/InsertParagraphSeparatorCommand.cpp:
(WebCore::InsertParagraphSeparatorCommand::doApply):
Adjust pos to pos.downstream() after the refNode is calculated, but before the insertion. Doing it earlier
undid the logic of positionAvoidingSpecialElementBoundary(). The downstream is still needed just to set the
ending selection.
LayoutTests:
Reviewed by Maciej and John.
Testcase for:
<rdar://problem/
5452675> CrashTracer: [USER] 10 crashes in Mail at com.apple.WebCore: WebCore::Node::nodeIndex const + 6
* editing/inserting/insert-paragraph-05.html: Added.
* platform/mac/editing/inserting/insert-paragraph-05-expected.checksum: Added.
* platform/mac/editing/inserting/insert-paragraph-05-expected.png: Added.
* platform/mac/editing/inserting/insert-paragraph-05-expected.txt: Added.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@25354
268f45cc-cd09-0410-ab3c-
d52691b4dbfc