Reviewed by John
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2004 17:08:42 +0000 (17:08 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 26 Oct 2004 17:08:42 +0000 (17:08 +0000)
commit8ac2ddc11ed00d9f0d4b1008763de0f28b49fb79
treebb042bb801664b03b92fe5a4c743bf9da72ae6e9
parent8d2c281918f4a3bc97d9999014ab3df4f37f3b90
    Reviewed by John

        * khtml/editing/htmlediting.cpp:
        (khtml::CompositeEditCommand::deleteInsignificantText): Do not call replaceText
        with a zero-length string. That triggers an assert. Call deleteText instead,
        using the same indices that are passed to replaceText.

        Cleaned up the asserts in these three functions below, making them
        more consistent. This is not needed for the fix, but I tripped over
        these in the course of debugging.

        (khtml::InsertTextCommand::InsertTextCommand):
        (khtml::InsertTextCommand::doApply):
        (khtml::InsertTextCommand::doUnapply):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@7895 268f45cc-cd09-0410-ab3c-d52691b4dbfc
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp