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 <commit-queue@webkit.org> 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
+2013-05-16 Commit Queue <commit-queue@webkit.org>
+
+ 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 <timothy_horton@apple.com>
PDFPlugins don't load when plugins are disabled, but they should
2013-05-16 Tim Horton <timothy_horton@apple.com>
PDFPlugins don't load when plugins are disabled, but they should
NSUndoManager *undoManager = [m_webView undoManager];
NSString *actionName = undoNameForEditAction(step->editingAction());
WebUndoStep *webEntry = [WebUndoStep stepWithUndoStep:step];
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 registerUndoWithTarget:m_undoTarget.get() selector:(isRedo ? @selector(redoEditing:) : @selector(undoEditing:)) object:webEntry];
if (actionName)
[undoManager setActionName:actionName];
- [undoManager endUndoGrouping];
m_haveUndoRedoOperations = YES;
}
m_haveUndoRedoOperations = YES;
}
+2013-05-16 Commit Queue <commit-queue@webkit.org>
+
+ 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 <timothy_horton@apple.com>
PDFPlugins don't load when plugins are disabled, but they should
2013-05-16 Tim Horton <timothy_horton@apple.com>
PDFPlugins don't load when plugins are disabled, but they should
String actionName = WebEditCommandProxy::nameForEditAction(command->editAction());
NSUndoManager *undoManager = [m_wkView undoManager];
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 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()
}
void PageClientImpl::clearAllEditCommands()