[webkit-dev] webkit #16401
Luke Kenneth Casson Leighton
lkcl at lkcl.net
Tue Jun 9 02:43:21 PDT 2009
> ah _ha_. GdomEventTargetNode used to be a custom-written base class
> which has now been removed, because the virtual base class
> EventTargetNode has been merged into Node. when GdomEventTargetNode
> went belly-up, so did the browser-event handling. whoops!
>
> i'll try adding it to Node and see what happens.
>
> $ git diff
> diff --git a/WebCore/bindings/scripts/CodeGeneratorGObject.pm b/WebCore/bindings
> index 17200d2..1f2eafa 100644
> --- a/WebCore/bindings/scripts/CodeGeneratorGObject.pm
> +++ b/WebCore/bindings/scripts/CodeGeneratorGObject.pm
> @@ -980,6 +980,7 @@ EOF
> my $txt_install_signals = "";
>
> if ($interfaceName eq "DOMWindow" or
> + $interfaceName eq "Node" or
> $interfaceName eq "XMLHttpRequest") {
> $txt_install_signals = << "EOF";
> event_signals[BROWSER_EVENT] = g_signal_new("browser-event",
>
yaay! that worked. event handling is back. do a git pull from
http://github.org/lkcl/webkit/16401.master and you'll be able to put
in callbacks on mouse, keyboard, etc. event handling on individual DOM
nodes again.
i've updated the http://lkcl.net/webkit/main.c example if you want to
download that again, i changed it to highlight <a href>s rather than
<object href>s which may make a bit more of a useful example.
l.
More information about the webkit-dev
mailing list