LayoutTests:
Reviewed by mjs
<http://bugzilla.opendarwin.org/show_bug.cgi?id=7578>
TinyMCE: Implement execCommand CreateLink
* editing/editing.js:
* editing/execCommand/createLink-expected.checksum: Added.
* editing/execCommand/createLink-expected.png: Added.
* editing/execCommand/createLink-expected.txt: Added.
* editing/execCommand/createLink.html: Added.
WebCore:
Reviewed by mjs
<http://bugzilla.opendarwin.org/show_bug.cgi?id=7578>
TinyMCE: Implement execCommand CreateLink
Used ApplyStyleCommand so that creating a link from
a selection doesn't change document structure.
* WebCore.xcodeproj/project.pbxproj:
* editing/ApplyStyleCommand.cpp:
(WebCore::ApplyStyleCommand::ApplyStyleCommand):
(WebCore::ApplyStyleCommand::doApply):
(WebCore::ApplyStyleCommand::removeInlineStyle):
(WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
* editing/ApplyStyleCommand.h:
* editing/CompositeEditCommand.cpp:
(WebCore::CompositeEditCommand::applyStyle):
* editing/CreateLinkCommand.cpp: Added.
(WebCore::CreateLinkCommand::CreateLinkCommand):
(WebCore::CreateLinkCommand::doApply):
* editing/CreateLinkCommand.h: Added.
* editing/jsediting.cpp:
* page/Frame.cpp:
(WebCore::Frame::computeAndSetTypingStyle):
(WebCore::Frame::applyStyle):
(WebCore::Frame::applyParagraphStyle):
git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13301
268f45cc-cd09-0410-ab3c-
d52691b4dbfc