RESOLVED FIXED 78481
[GTK] DRT doesn't support scheduleAsynchronousKeyDown.
https://bugs.webkit.org/show_bug.cgi?id=78481
Summary [GTK] DRT doesn't support scheduleAsynchronousKeyDown.
ChangSeok Oh
Reported 2012-02-13 03:06:46 PST
It looks GTK port DRT doesn't support scheduleAsynchronousKeyDown yet, so it causes some layout test failures
Attachments
Patch (10.72 KB, patch)
2012-02-21 08:37 PST, ChangSeok Oh
no flags
Patch (11.00 KB, patch)
2012-02-21 22:31 PST, ChangSeok Oh
no flags
Patch (10.88 KB, patch)
2012-02-22 09:33 PST, ChangSeok Oh
no flags
ChangSeok Oh
Comment 1 2012-02-21 08:37:11 PST
Gustavo Noronha (kov)
Comment 2 2012-02-21 09:57:52 PST
Comment on attachment 127978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127978&action=review r-, although it's just for a few nitpicks and a possible useless include, I think you'll prefer to upload a new patch anyway? =) > Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp:53 > +#include "PlatformKeyboardEvent.h" Why do we need this extra include? > Tools/DumpRenderTree/gtk/EventSender.cpp:761 > + sendKeyDown(static_cast<gpointer>(pressEvent)); I think I would prefer to have a proper function with the appropriate type for the argument that is called from here and from the idle callback.
Martin Robinson
Comment 3 2012-02-21 10:23:39 PST
Comment on attachment 127978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127978&action=review > Tools/DumpRenderTree/gtk/EventSender.cpp:834 > + g_idle_add(sendKeyDown, static_cast<gpointer>(pressEvent)); Perhaps g_timeout_add after a 0 delay would be better here?
ChangSeok Oh
Comment 4 2012-02-21 10:41:36 PST
Comment on attachment 127978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127978&action=review Thanks for the review :) >> Source/WebKit/gtk/WebCoreSupport/DumpRenderTreeSupportGtk.cpp:53 >> +#include "PlatformKeyboardEvent.h" > > Why do we need this extra include? Oops. Sorry :p >> Tools/DumpRenderTree/gtk/EventSender.cpp:761 >> + sendKeyDown(static_cast<gpointer>(pressEvent)); > > I think I would prefer to have a proper function with the appropriate type for the argument that is called from here and from the idle callback. Do you mean it looks better to wrap sendKeyDown and g_idle_add(sendKeyDown... in a function with arguments? For example, bool sendKeyDown(bool asynchronous)?
ChangSeok Oh
Comment 5 2012-02-21 10:47:06 PST
Comment on attachment 127978 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=127978&action=review >> Tools/DumpRenderTree/gtk/EventSender.cpp:834 >> + g_idle_add(sendKeyDown, static_cast<gpointer>(pressEvent)); > > Perhaps g_timeout_add after a 0 delay would be better here? I followed the way of scheduleAsynchronousClickCallback. It has used g_idle_add. Do we need to modify this, too? :)
ChangSeok Oh
Comment 6 2012-02-21 22:31:35 PST
Gustavo Noronha (kov)
Comment 7 2012-02-22 08:30:18 PST
(In reply to comment #4) > >> Tools/DumpRenderTree/gtk/EventSender.cpp:761 > >> + sendKeyDown(static_cast<gpointer>(pressEvent)); > > > > I think I would prefer to have a proper function with the appropriate type for the argument that is called from here and from the idle callback. > > Do you mean it looks better to wrap sendKeyDown and g_idle_add(sendKeyDown... in a function with arguments? > For example, bool sendKeyDown(bool asynchronous)? No, I mean sendKeyDown should take GdkEvent* pressEvent as the only argument. You would call it directly here, and you would have a handler for the idle that would also call it.
ChangSeok Oh
Comment 8 2012-02-22 09:33:23 PST
Gustavo Noronha (kov)
Comment 9 2012-02-23 05:53:49 PST
Comment on attachment 128229 [details] Patch Yep! Thanks
WebKit Review Bot
Comment 10 2012-02-23 07:57:35 PST
Comment on attachment 128229 [details] Patch Clearing flags on attachment: 128229 Committed r108628: <http://trac.webkit.org/changeset/108628>
WebKit Review Bot
Comment 11 2012-02-23 07:57:46 PST
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.