what triggers the expose event on gtk port
Hello. I want to know what exactly triggers the expose event in WebKit. Or, how does GTK+ know when WebKit made changes and needs the expose callback to refresh the screen? Any help appreciated. Greets, Luka
After some analysis I've noticed that the Frame::paint() in WebCore/page/Frame.cpp is responsible for drawing and updating contents in case of changes (ie. javascript animations). What I couldn't find out what actually triggers this function. Any ideas. Greets, Luka Dne 25.06.2008 (sre) ob 13:23 +0200 je Luka Napotnik zapisal(a):
Hello.
I want to know what exactly triggers the expose event in WebKit. Or, how does GTK+ know when WebKit made changes and needs the expose callback to refresh the screen?
Any help appreciated.
Greets, Luka
hi, This happens when you call a gdk_window_invalidate_rect on the page window (webView->window). This api implies the window is dirtied and needs refresh for the specified rectangle area. you can check WebCore/platform/gtk/ScrollViewGtk.cpp update* which are called by the rendering engine. regards, Zaheer On Thu, Jun 26, 2008 at 6:20 PM, Luka Napotnik <luka.napotnik@gmail.com> wrote:
After some analysis I've noticed that the Frame::paint() in WebCore/page/Frame.cpp is responsible for drawing and updating contents in case of changes (ie. javascript animations). What I couldn't find out what actually triggers this function. Any ideas.
Greets, Luka
Dne 25.06.2008 (sre) ob 13:23 +0200 je Luka Napotnik zapisal(a):
Hello.
I want to know what exactly triggers the expose event in WebKit. Or, how does GTK+ know when WebKit made changes and needs the expose callback to refresh the screen?
Any help appreciated.
Greets, Luka
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
Hello. Thanks for the reply. What I need now is a way to trigger an event from the WebKitWebView or the WebKitWebFrame Gtk+ object instead of calling the invalidate_rect(). I've noticed the call to containingWindow() which returns a GtkWidget. The problem is I don't know if that's the gtk+ webview widget. Please help. Greets, Luka Dne 26.06.2008 (čet) ob 20:48 +0530 je zaheer ahmad zapisal(a):
hi, This happens when you call a gdk_window_invalidate_rect on the page window (webView->window). This api implies the window is dirtied and needs refresh for the specified rectangle area.
you can check WebCore/platform/gtk/ScrollViewGtk.cpp update* which are called by the rendering engine.
regards, Zaheer
On Thu, Jun 26, 2008 at 6:20 PM, Luka Napotnik <luka.napotnik@gmail.com> wrote: After some analysis I've noticed that the Frame::paint() in WebCore/page/Frame.cpp is responsible for drawing and updating contents in case of changes (ie. javascript animations). What I couldn't find out what actually triggers this function. Any ideas.
Greets, Luka
Dne 25.06.2008 (sre) ob 13:23 +0200 je Luka Napotnik zapisal(a):
> Hello. > > I want to know what exactly triggers the expose event in WebKit. Or, how > does GTK+ know when WebKit made changes and needs the expose callback to > refresh the screen? > > Any help appreciated. > > Greets, > Luka
_______________________________________________ webkit-dev mailing list webkit-dev@lists.webkit.org http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
participants (2)
-
Luka Napotnik
-
zaheer ahmad