Fixed: <rdar://problem/4030669> smart delete does not delete spaces from pasted...
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2005 23:26:37 +0000 (23:26 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Tue, 1 Mar 2005 23:26:37 +0000 (23:26 +0000)
commit1c7d2a200c928c912876bf40f71e99a3f90e1159
tree62609bfca386c302f499976c1c964139584af89f
parent7accab7195c5b825e67ce54a7d0b9c1a0822fb9c
Fixed: <rdar://problem/4030669> smart delete does not delete spaces from pasted content

        Reviewed by rjw.

        * khtml/editing/htmlediting.cpp:
        (khtml::DeleteSelectionCommand::initializePositionData): pass true for treatNBSPAsWhiteSpace to leadingWhitespacePosition and trailingWhitespacePosition when testing whether or not we have to delete those characters as well.
        * khtml/editing/jsediting.cpp: pass true for smartDelete when the selection granularity is WORD. This allows us to write smart delete layout tests.
        * layout-tests/editing/deleting/smart-delete-001-expected.txt: Added.
        * layout-tests/editing/deleting/smart-delete-001.html: Added.
        * layout-tests/editing/deleting/smart-delete-002-expected.txt: Added.
        * layout-tests/editing/deleting/smart-delete-002.html: Added.

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