WebCore:
Reviewed by Dave
Added execCommand support for cut/copy/paste.
* khtml/xml/dom_docimpl.cpp:
(DocumentImpl::execCommand): Added cut/copy/paste atoms and added else if cases
for the commands.
* kwq/KWQKHTMLPart.h:
* kwq/KWQKHTMLPart.mm:
(KWQKHTMLPart::issueCutCommand): Glue for calling from WebCore to do a cut in Cocoa.
(KWQKHTMLPart::issueCopyCommand): Same as above, but for copy.
(KWQKHTMLPart::issuePasteCommand): Same as above, but for paste.
* kwq/WebCoreBridge.h: Declared issueCutCommand, issueCopyCommand, and issuePasteCommand
to be implemented on the WebKit side of the bridge.
* layout-tests/editing/editing.js: Added cut/copy/paste support to js library to support
making layout tests.
* layout-tests/editing/pasteboard/copy-paste-text-001-expected.txt: Added.
* layout-tests/editing/pasteboard/copy-paste-text-001.html: Added.
* layout-tests/editing/pasteboard/cut-paste-text-002-expected.txt: Added.
* layout-tests/editing/pasteboard/cut-paste-text-002.html: Added.
* layout-tests/editing/pasteboard/cut-text-001-expected.txt: Added.
* layout-tests/editing/pasteboard/cut-text-001.html: Added.
WebKit:
Reviewed by Dave
Added execCommand support for cut/copy/paste.
* WebCoreSupport.subproj/WebBridge.m:
(-[WebBridge issueCutCommand]): Glue for calling from WebCore to do a cut in Cocoa.
(-[WebBridge issueCopyCommand]): Same as above, but for copy.
(-[WebBridge issuePasteCommand]): Same as above, but for paste.
* WebView.subproj/WebHTMLView.m:
(-[WebHTMLView copy:]): Move this to private implementation category so the bridge can see it.
(-[WebHTMLView cut:]): Ditto.
(-[WebHTMLView paste:]): Ditto.
* WebView.subproj/WebHTMLViewPrivate.h: Move copy;, cut:, and paste: to private implementation
category so the bridge can see it.
* WebView.subproj/WebView.m:
(-[WebView copy:]): Implemented by calling WebHTMLView to do the work.
(-[WebView cut:]): Ditto.
(-[WebView paste:]): Ditto.
* WebView.subproj/WebViewPrivate.h: Added all the NSReponder methods we plan to implement as
part of the WebKit editing API.
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@6352
268f45cc-cd09-0410-ab3c-
d52691b4dbfc