WebCore:
authorharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Sep 2007 16:55:42 +0000 (16:55 +0000)
committerharrison <harrison@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 4 Sep 2007 16:55:42 +0000 (16:55 +0000)
commit64b28e1c0a4b73556c21669adf12d3aeca00cd93
tree79c9934d6178adbf55db3c2539bbb9ca2155ee2d
parent8988016344fa92a44edee21a3fdfd06c209f920e
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
LayoutTests/ChangeLog
LayoutTests/editing/inserting/insert-paragraph-05.html [new file with mode: 0644]
LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.checksum [new file with mode: 0644]
LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.png [new file with mode: 0644]
LayoutTests/platform/mac/editing/inserting/insert-paragraph-05-expected.txt [new file with mode: 0644]
WebCore/ChangeLog
WebCore/editing/InsertParagraphSeparatorCommand.cpp