Skip to content
  • andersca's avatar
    WebCore: · f623201a
    andersca authored
            Reviewed by Darin.
    
            Let the editor client handle undo/redo.
            
            * WebCore.exp:
            * WebCore.xcodeproj/project.pbxproj:
            * bridge/EditorClient.h:
            * bridge/mac/FrameMac.h:
            * bridge/mac/FrameMac.mm:
            (WebCore::FrameMac::canUndo):
            (WebCore::FrameMac::canRedo):
            * bridge/mac/WebCoreEditCommand.h: Removed.
            * bridge/mac/WebCoreEditCommand.mm: Removed.
            * bridge/mac/WebCoreFrameBridge.h:
            * bridge/mac/WebCoreFrameBridge.mm:
            * editing/Editor.cpp:
            (WebCore::Editor::appliedEditing):
            (WebCore::Editor::unappliedEditing):
            (WebCore::Editor::reappliedEditing):
            * editing/JSEditor.cpp:
            * loader/FrameLoader.cpp:
            (WebCore::FrameLoader::closeURL):
            * page/Frame.cpp:
            * page/Frame.h:
            * rendering/RenderTextControl.cpp:
            (WebCore::RenderTextControl::updateFromElement):
    
    WebKit:
    
            Reviewed by Darin.
    
            Move undo/redo handling into WebEditorClient.
            
            * WebCoreSupport/WebEditorClient.h:
            * WebCoreSupport/WebEditorClient.mm:
            (WebEditorClient::WebEditorClient):
            (WebEditorClient::~WebEditorClient):
            (-[WebEditCommand initWithEditCommand:WebCore::]):
            (-[WebEditCommand dealloc]):
            (-[WebEditCommand finalize]):
            (+[WebEditCommand commandWithEditCommand:]):
            (-[WebEditCommand command]):
            (-[WebEditorUndoTarget undoEditing:]):
            (-[WebEditorUndoTarget redoEditing:]):
            (undoNameForEditAction):
            (WebEditorClient::registerCommandForUndoOrRedo):
            (WebEditorClient::registerCommandForUndo):
            (WebEditorClient::registerCommandForRedo):
            (WebEditorClient::clearUndoRedoOperations):
            (WebEditorClient::canUndo):
            (WebEditorClient::canRedo):
            (WebEditorClient::undo):
            (WebEditorClient::redo):
            * WebCoreSupport/WebFrameBridge.mm:
            * WebKit.xcodeproj/project.pbxproj:
    
    
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@17767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    f623201a