Reviewed by Trey
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Aug 2004 16:55:47 +0000 (16:55 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 20 Aug 2004 16:55:47 +0000 (16:55 +0000)
commit33cdbd490277bc59483f161fe12de05da90630e3
tree1b2effd2684b3f6f47858b0766d5a4da2340ecc8
parentbddfd33a9eb11c82c6e95b1b89f8fe90a4c6c27c
    Reviewed by Trey

        Fix for this bug:

        <rdar://problem/3768378> crash typing newline in Blot

        * khtml/editing/htmlediting_impl.cpp:
        (khtml::InputNewlineCommandImpl::doApply): Adding an assert in a recent change
        showed up that inserting newlines that was not being handled correctly for the
        case described in the bug. I added a new case to handle inserting BR's when
        at the caret max offset for a node, and this new code runs instead of the
        fall-through case that should not have been running and triggered the assert.
        * layout-tests/editing/inserting/insert-br-case2-expected.txt: Regenerated results.
        * layout-tests/editing/inserting/insert-br-case6-expected.txt: Added.
        * layout-tests/editing/inserting/insert-br-case6.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7309 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/inserting/insert-br-case2-expected.txt
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting_impl.cpp