WebCore:
authorcblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 02:34:08 +0000 (02:34 +0000)
committercblu <cblu@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 23 Feb 2005 02:34:08 +0000 (02:34 +0000)
commitec89a085c0a1d7c7f64b5342d64c7b45b5508faf
tree56655358aad1bc0520cd3f0afd8325fad628f580
parent2bd3b984f85623aee1cef42ee1ff5f6bf90043c7
WebCore:

Fixed: <rdar://problem/3976872> Pasted plain text doesn't get the proper style if pasted into newlines

        Reviewed by mjs.

        * khtml/editing/htmlediting.cpp:
        (khtml::ReplaceSelectionCommand::doApply): don't clear the typing style when matching style
        (khtml::ReplaceSelectionCommand::completeHTMLReplacement): apply the typing style when matching style
        * khtml/editing/jsediting.cpp:
        * khtml/khtml_part.cpp:
        (KHTMLPart::pasteAndMatchStyle): new
        * khtml/khtml_part.h:
        * kwq/KWQKHTMLPart.h:
        * kwq/KWQKHTMLPart.mm:
        (KWQKHTMLPart::issuePasteAndMatchStyleCommand): new
        * kwq/WebCoreBridge.h:
        * layout-tests/editing/editing.js:

WebKit:

        Reviewed by mjs.

        * WebCoreSupport.subproj/WebBridge.m:
        (-[WebBridge issuePasteAndMatchStyleCommand]): support for new "PasteAndMatchStyle" exec command

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@8663 268f45cc-cd09-0410-ab3c-d52691b4dbfc
15 files changed:
LayoutTests/editing/editing.js
LayoutTests/editing/pasteboard/paste-match-style-001-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-match-style-001.html [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-match-style-002-expected.txt [new file with mode: 0644]
LayoutTests/editing/pasteboard/paste-match-style-002.html [new file with mode: 0644]
WebCore/ChangeLog-2005-08-23
WebCore/khtml/editing/htmlediting.cpp
WebCore/khtml/editing/jsediting.cpp
WebCore/khtml/khtml_part.cpp
WebCore/khtml/khtml_part.h
WebCore/kwq/KWQKHTMLPart.h
WebCore/kwq/KWQKHTMLPart.mm
WebCore/kwq/WebCoreBridge.h
WebKit/ChangeLog
WebKit/WebCoreSupport.subproj/WebBridge.m