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