-
lweintraub authored
Reviewed by justin http://bugzilla.opendarwin.org/show_bug.cgi?id=7568 Bug 7568: Implement Indent/Outdent * editing/execCommand/indent-list-item-expected.checksum: Added. * editing/execCommand/indent-list-item-expected.png: Added. * editing/execCommand/indent-list-item-expected.txt: Added. * editing/execCommand/indent-list-item.html: Added. * editing/execCommand/indent-selection-expected.checksum: Added. * editing/execCommand/indent-selection-expected.png: Added. * editing/execCommand/indent-selection-expected.txt: Added. * editing/execCommand/indent-selection.html: Added. * editing/execCommand/outdent-selection.html: Added. WebCore: Reviewed by justin http://bugzilla.opendarwin.org/show_bug.cgi?id=7568 Bug 7568: Implement Indent/Outdent * WebCore.vcproj/WebCore/WebCore.vcproj: Added IndentOutdentCommand.h/cpp * WebCore.xcodeproj/project.pbxproj: Ditto. * editing/IndentOutdentCommand.cpp: Added. (WebCore::IndentOutdentCommand::IndentOutdentCommand): (WebCore::enclosingListOrBlockquote): (WebCore::IndentOutdentCommand::splitTreeToNode): Splits the DOM tree from a descendent node to an ending ancestor, duplicating nodes when necessary. Returns the last node split. Used to insert blockquotes at the topmost level. (WebCore::IndentOutdentCommand::indentRegion): (WebCore::IndentOutdentCommand::outdentParagraph): (WebCore::IndentOutdentCommand::outdentRegion): (WebCore::IndentOutdentCommand::doApply): * editing/IndentOutdentCommand.h: Added. (WebCore::IndentOutdentCommand::): * editing/JSEditor.cpp: Added the execCommands Indent and Outdent * editing/htmlediting.cpp: (WebCore::enclosingNodeWithTag): Finds the enclosing node with any specified tag. (WebCore::enclosingListChild): Added checks for nill and editable boundaries. (WebCore::outermostEnclosingListChild): Returns the highest ancestor list child. (WebCore::highestAncestor): Added. (WebCore::createElement): Changed the passed in string to a const reference. * editing/htmlediting.h: WebKit: Reviewed by justin http://bugzilla.opendarwin.org/show_bug.cgi?id=7568 Bug 7568: Implement Indent/Outdent Added undo action strings and enum values * English.lproj/Localizable.strings: * WebCoreSupport/WebFrameBridge.m: (-[WebFrameBridge nameForUndoAction:]): git-svn-id: http://svn.webkit.org/repository/webkit/trunk@15080 268f45cc-cd09-0410-ab3c-d52691b4dbfc
613b7e24