From: rniwa@webkit.org Date: Fri, 17 May 2013 02:46:25 +0000 (+0000) Subject: Unreviewed, rolling out r150034. X-Git-Url: https://git.webkit.org/?p=WebKit-https.git;a=commitdiff_plain;h=c90b28626b28cae9913c0a3706ed1dcead55e6db Unreviewed, rolling out r150034. http://trac.webkit.org/changeset/150034 https://bugs.webkit.org/show_bug.cgi?id=116257 This work around doesn't work due to another bug NSUndoManager has (Requested by rniwa on #webkit). Patch by Commit Queue on 2013-05-16 Source/WebKit/mac: * WebCoreSupport/WebEditorClient.mm: (WebEditorClient::registerUndoOrRedoStep): Source/WebKit2: * UIProcess/API/mac/PageClientImpl.mm: (WebKit::PageClientImpl::registerEditCommand): git-svn-id: https://svn.webkit.org/repository/webkit/trunk@150230 268f45cc-cd09-0410-ab3c-d52691b4dbfc --- diff --git a/Source/WebKit/mac/ChangeLog b/Source/WebKit/mac/ChangeLog index 074d150b3ea8..39e890763aad 100644 --- a/Source/WebKit/mac/ChangeLog +++ b/Source/WebKit/mac/ChangeLog @@ -1,3 +1,15 @@ +2013-05-16 Commit Queue + + Unreviewed, rolling out r150034. + http://trac.webkit.org/changeset/150034 + https://bugs.webkit.org/show_bug.cgi?id=116257 + + This work around doesn't work due to another bug NSUndoManager + has (Requested by rniwa on #webkit). + + * WebCoreSupport/WebEditorClient.mm: + (WebEditorClient::registerUndoOrRedoStep): + 2013-05-16 Tim Horton PDFPlugins don't load when plugins are disabled, but they should diff --git a/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm b/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm index 099d2e7b1513..2045d8eaf732 100644 --- a/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm +++ b/Source/WebKit/mac/WebCoreSupport/WebEditorClient.mm @@ -544,11 +544,9 @@ void WebEditorClient::registerUndoOrRedoStep(PassRefPtr step, bool isR NSUndoManager *undoManager = [m_webView undoManager]; NSString *actionName = undoNameForEditAction(step->editingAction()); WebUndoStep *webEntry = [WebUndoStep stepWithUndoStep:step]; - [undoManager beginUndoGrouping]; [undoManager registerUndoWithTarget:m_undoTarget.get() selector:(isRedo ? @selector(redoEditing:) : @selector(undoEditing:)) object:webEntry]; if (actionName) [undoManager setActionName:actionName]; - [undoManager endUndoGrouping]; m_haveUndoRedoOperations = YES; } diff --git a/Source/WebKit2/ChangeLog b/Source/WebKit2/ChangeLog index dc936e569f7b..20ca37737962 100644 --- a/Source/WebKit2/ChangeLog +++ b/Source/WebKit2/ChangeLog @@ -1,3 +1,15 @@ +2013-05-16 Commit Queue + + Unreviewed, rolling out r150034. + http://trac.webkit.org/changeset/150034 + https://bugs.webkit.org/show_bug.cgi?id=116257 + + This work around doesn't work due to another bug NSUndoManager + has (Requested by rniwa on #webkit). + + * UIProcess/API/mac/PageClientImpl.mm: + (WebKit::PageClientImpl::registerEditCommand): + 2013-05-16 Tim Horton PDFPlugins don't load when plugins are disabled, but they should diff --git a/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm b/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm index 447cd907a88f..28bf8218bf0d 100644 --- a/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm +++ b/Source/WebKit2/UIProcess/API/mac/PageClientImpl.mm @@ -286,11 +286,9 @@ void PageClientImpl::registerEditCommand(PassRefPtr prpComm String actionName = WebEditCommandProxy::nameForEditAction(command->editAction()); NSUndoManager *undoManager = [m_wkView undoManager]; - [undoManager beginUndoGrouping]; [undoManager registerUndoWithTarget:m_undoTarget.get() selector:((undoOrRedo == WebPageProxy::Undo) ? @selector(undoEditing:) : @selector(redoEditing:)) object:commandObjC.get()]; if (!actionName.isEmpty()) [undoManager setActionName:(NSString *)actionName]; - [undoManager endUndoGrouping]; } void PageClientImpl::clearAllEditCommands()