Reviewed by John
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Dec 2004 19:45:47 +0000 (19:45 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 21 Dec 2004 19:45:47 +0000 (19:45 +0000)
commit694ca36f3ce6e11f7540c03776939087c2a7d5f1
treef8025aae188283ac6ed5118de7448fa484b4556d
parent4fae1a28cc7ab64b94f01396428236a19d8e76d9
    Reviewed by John

        Fix for this bug:

        <rdar://problem/3928305> selecting an entire line and typing over causes new inserted text at top of document

        * khtml/editing/htmlediting.cpp:
        (khtml::DeleteSelectionCommand::insertPlaceholderForAncestorBlockContent): New function to detect case
        formerly undetected and unhandled. This is the crux of the bug fix.
        (khtml::DeleteSelectionCommand::doApply): Call insertPlaceholderForAncestorBlockContent() during
        execution of command.
        * khtml/editing/htmlediting.h: Declare new function.
        * layout-tests/editing/deleting/delete-3928305-fix-expected.txt: Added.
        * layout-tests/editing/deleting/delete-3928305-fix.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8271 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/deleting/delete-3928305-fix-expected.txt [new file with mode: 0644]
LayoutTests/editing/deleting/delete-3928305-fix.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp
WebCore/khtml/editing/htmlediting.h