Reviewed by Kevin
authorkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2005 22:42:04 +0000 (22:42 +0000)
committerkocienda <kocienda@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Fri, 7 Jan 2005 22:42:04 +0000 (22:42 +0000)
commitbd7b483a92e1ac47966d7b782305346995be7470
tree68b577dc2dcc01aab7ca52782b176bdb271bbc44
parent2143d96acfb6de4117f7beaec2861a4bcf6666e5
    Reviewed by Kevin

        Fix for these bugs:

        <rdar://problem/3939523> in some cases, text does not retain style info after pressing return twice
        <rdar://problem/3944492> after pressing return twice, text is bold when it shouldn't be

        * khtml/editing/htmlediting.cpp:
        (khtml::InsertParagraphSeparatorCommand::setFullTypingStyleBeforeInsertion):
        Merge the typing style with the computed style for the current position. Fixes both bugs.
        * khtml/editing/htmlediting.h:
        * layout-tests/editing/inserting/insert-div-023-expected.txt: Added.
        * layout-tests/editing/inserting/insert-div-023.html: Added.
        * layout-tests/editing/inserting/insert-div-024-expected.txt: Added.
        * layout-tests/editing/inserting/insert-div-024.html: Added.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8320 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/editing/inserting/insert-div-023-expected.txt [new file with mode: 0644]
LayoutTests/editing/inserting/insert-div-023.html [new file with mode: 0644]
LayoutTests/editing/inserting/insert-div-024-expected.txt [new file with mode: 0644]
LayoutTests/editing/inserting/insert-div-024.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp