Reviewed by Chris
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Nov 2004 22:03:04 +0000 (22:03 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 10 Nov 2004 22:03:04 +0000 (22:03 +0000)
commit5f71353fcb4c40c9355ec7c9fc984cf40e39420f
tree4bfc951eee26d4c3034e3dfe4a69c2d7c3c6a96c
parent26cee589bf14a1eeb1ffca8a3f68932e4aad5bdd
    Reviewed by Chris

        * khtml/editing/htmlediting.cpp:
        (khtml::DeleteSelectionCommand::initializePositionData): Move position adjustments for
        smart delete from the two functions below to here. There was an unnecessary double
        calculation of the leading and trailing whitespace positions. Also refined the trailing
        case so it only acts when the leading position is null (which seems to match TextEdit in
        my tests). Also removed some unnecessary copying of Position objects.
        (khtml::DeleteSelectionCommand::startPositionForDelete): Move out smart delete adjustment
        from here.
        (khtml::DeleteSelectionCommand::endPositionForDelete): Ditto.

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