LayoutTests:
authorjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Mar 2006 10:17:39 +0000 (10:17 +0000)
committerjusting <justing@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 25 Mar 2006 10:17:39 +0000 (10:17 +0000)
commit40dcfbef61b45e65af9ed897edf8113acab11048
tree83c46429620b209404d5912b3fe9e96e95750240
parentc7cf15d9df6e272ef9cf720c0c3bc367bfbafa91
LayoutTests:

        Reviewed by harrison

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7683>
        TinyMCE: execCommand("Unlink") unimplemented

        * editing/editing.js:
        * editing/execCommand/createLink-expected.checksum: Removed.
        * editing/execCommand/createLink-expected.png: Removed.
        * editing/execCommand/createLink-expected.txt:
        * editing/execCommand/createLink.html:
        * editing/execCommand/unlink-expected.txt: Added.
        * editing/execCommand/unlink.html: Added.

WebCore:

        Reviewed by harrison

        <http://bugzilla.opendarwin.org/show_bug.cgi?id=7683>
        TinyMCE: execCommand("Unlink") unimplemented

        Added code to push partially selected anchor elements down before
        creating or removing links to create fully selected chunks that can be removed.
        Changed __create_link_command_h__ to CreateLinkCommand_h
        Gave styled element application/removal its own ApplyStyleCommand constructor.
        Still need to add new EditActions (7974).

        * WebCore.xcodeproj/project.pbxproj:
        * editing/ApplyStyleCommand.cpp:
        (WebCore::ApplyStyleCommand::ApplyStyleCommand):
        (WebCore::ApplyStyleCommand::applyBlockStyle):
        (WebCore::ApplyStyleCommand::addInlineStyleIfNeeded):
        * editing/ApplyStyleCommand.h:
        * editing/CompositeEditCommand.cpp:
        (WebCore::CompositeEditCommand::applyStyle):
        (WebCore::CompositeEditCommand::applyStyledElement):
        (WebCore::CompositeEditCommand::removeStyledElement):
        (WebCore::enclosingAnchorElement):
        (WebCore::CompositeEditCommand::pushAnchorElementDown):
        (WebCore::CompositeEditCommand::pushPartiallySelectedAnchorElementsDown):
        * editing/CompositeEditCommand.h:
        * editing/CreateLinkCommand.cpp:
        (WebCore::CreateLinkCommand::doApply):
        * editing/CreateLinkCommand.h:
        * editing/JSEditor.cpp:
        * editing/Selection.cpp:
        (WebCore::Selection::selectionFromContentsOfNode):
        * editing/Selection.h:
        * editing/UnlinkCommand.cpp: Added.
        (WebCore::UnlinkCommand::UnlinkCommand):
        (WebCore::UnlinkCommand::doApply):
        * editing/UnlinkCommand.h: Added.
        * page/Frame.cpp:
        (WebCore::Frame::selectContentsOfNode):
        (WebCore::Frame::computeAndSetTypingStyle):
        (WebCore::Frame::applyStyle):
        (WebCore::Frame::applyParagraphStyle):

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@13477 268f45cc-cd09-0410-ab3c-d52691b4dbfc
22 files changed:
LayoutTests/ChangeLog
LayoutTests/editing/editing.js
LayoutTests/editing/execCommand/createLink-expected.checksum [deleted file]
LayoutTests/editing/execCommand/createLink-expected.png [deleted file]
LayoutTests/editing/execCommand/createLink-expected.txt
LayoutTests/editing/execCommand/createLink.html
LayoutTests/editing/execCommand/unlink-expected.txt [new file with mode: 0644]
LayoutTests/editing/execCommand/unlink.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/CompositeEditCommand.h
WebCore/editing/CreateLinkCommand.cpp
WebCore/editing/CreateLinkCommand.h
WebCore/editing/JSEditor.cpp
WebCore/editing/Selection.cpp
WebCore/editing/Selection.h
WebCore/editing/UnlinkCommand.cpp [new file with mode: 0644]
WebCore/editing/UnlinkCommand.h [new file with mode: 0644]
WebCore/page/Frame.cpp