LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Mar 2006 07:01:21 +0000 (07:01 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Wed, 15 Mar 2006 07:01:21 +0000 (07:01 +0000)
commit716f5389919e7523b059db825e71db455fbbc58c
tree6b4b237e203e612f55d09b12c9f9e24b35697097
parent0c6023a8b75b5358483fe6c6edabefa9b20f5b0e
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
15 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/editing.js
LayoutTests/editing/execCommand/createLink-expected.checksum [new file with mode: 0644]
LayoutTests/editing/execCommand/createLink-expected.png [new file with mode: 0644]
LayoutTests/editing/execCommand/createLink-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/createLink.html [new file with mode: 0644]
WebCore/ChangeLog
WebCore/WebCore.xcodeproj/project.pbxproj
WebCore/editing/ApplyStyleCommand.cpp
WebCore/editing/ApplyStyleCommand.h
WebCore/editing/CompositeEditCommand.cpp
WebCore/editing/CreateLinkCommand.cpp [new file with mode: 0644]
WebCore/editing/CreateLinkCommand.h [new file with mode: 0644]
WebCore/editing/jsediting.cpp
WebCore/page/Frame.cpp