RESOLVED FIXED122305
[GTK] Enable text edition UndoOperations support in WebKit2
https://bugs.webkit.org/show_bug.cgi?id=122305
Summary [GTK] Enable text edition UndoOperations support in WebKit2
Lorenzo Tilve
Reported 2013-10-03 16:55:28 PDT
The methods that interact with the text edition to provide support for undo/redo operations are not implemented, when they could be using the operations that DefaultUndoController provides. As a consequence of this, the functionality and the layout tests related with these type of operations are failing.
Attachments
Patch (12.19 KB, patch)
2013-10-03 17:26 PDT, Lorenzo Tilve
no flags
Patch (9.29 KB, patch)
2013-10-04 08:38 PDT, Lorenzo Tilve
no flags
Lorenzo Tilve
Comment 1 2013-10-03 17:26:01 PDT
WebKit Commit Bot
Comment 2 2013-10-03 17:27:20 PDT
Thanks for the patch. If this patch contains new public API please make sure it follows the guidelines for new WebKit2 GTK+ API. See http://trac.webkit.org/wiki/WebKitGTK/AddingNewWebKit2API
Martin Robinson
Comment 3 2013-10-03 17:47:24 PDT
Comment on attachment 213314 [details] Patch Surely this changes layout tests results? Can we unskip some tests with this patch?
Sergio Villar Senin
Comment 4 2013-10-03 23:42:38 PDT
(In reply to comment #3) > (From update of attachment 213314 [details]) > Surely this changes layout tests results? Can we unskip some tests with this patch? The patch already removes tons of undo tests from the wk2 testexpectations file
Carlos Garcia Campos
Comment 5 2013-10-04 00:11:03 PDT
Comment on attachment 213314 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=213314&action=review Looks good to me in general, I have just a few minor comments. Thanks! > Source/WebKit2/UIProcess/API/gtk/PageClientImpl.cpp:31 > +#include "DefaultUndoController.h" This is already included in PageClientImpl.h > Source/WebKit2/UIProcess/API/gtk/PageClientImpl.h:41 > +class DefaultUndoController; Do we really need this? We are already including the header here. > Source/WebKit2/UIProcess/API/gtk/WebKitWebViewBase.cpp:375 > - priv->pageClient = PageClientImpl::create(viewWidget); > + priv->pageClient = PageClientImpl::create(viewWidget, &priv->undoController); Wouldn't it be simpler to make DefaultUndoController a member of PageClientImpl? The undocontroller is not used by the WebKitWebViewBase at all
Lorenzo Tilve
Comment 6 2013-10-04 08:38:10 PDT
Created attachment 213368 [details] Patch Applied the suggested corrections
Carlos Garcia Campos
Comment 7 2013-10-04 08:41:24 PDT
Comment on attachment 213368 [details] Patch Looks great, thanks!
Martin Robinson
Comment 8 2013-10-04 09:05:53 PDT
(In reply to comment #3) > (From update of attachment 213314 [details]) > Surely this changes layout tests results? Can we unskip some tests with this patch? Whoops. Sorry about that. I missed that portion of the patch.
WebKit Commit Bot
Comment 9 2013-10-04 09:13:54 PDT
Comment on attachment 213368 [details] Patch Clearing flags on attachment: 213368 Committed r156892: <http://trac.webkit.org/changeset/156892>
WebKit Commit Bot
Comment 10 2013-10-04 09:13:57 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.