[webkit-dev] Can someone explain function ChromeClient::scroll in WebKit/gtk/WebCoreSupport/ChromeClientGtk.c?
I Luv Code
iluvcode at gmail.com
Mon May 2 10:45:40 PDT 2011
Hi,
Let me share with you whatever little I am aware of.
When you try to scroll, the event first reaches to Glue
layer(webview/webpage) & from there It goes to WebCore inside through
ScrollView & FrameView & then finally it lands up to Chrome::scroll. And
then m_client->scroll calls ChromeClientGTK::scroll. Please let me know if
you want to know anything further details.
#1> delta always signifies how much size you have scrolled (width & height)
& moveRect means how much area(size) have been scrolled [from this line
gdk_rectangle_intersect(&area, &sourceRect, &moveRect)]
#2>Normally I have seen rectToScroll & clipRect are as same as your default
Viewport area. Say it is 200 px width & delta.width=50
Then moverect.width = 150 (how much rect area is scrolled) & similarly for
height.
Let me know if this brief info was of any help.
Thanks.
On Fri, Apr 29, 2011 at 11:49 AM, Corey Fu <coreyfu at gmail.com> wrote:
> Hi !
> Someone can help!
> When I drag the scroll, how does ChromeClient::scroll work? and I also
> have two questions:
> 1. What do "delta" and "moveRect" mean in function ChromeClient::scroll in
> WebKit/gtk/WebCoreSupport/ChromeClientGtk.c?
> 2. What the difference between delta.width(),delta.height() and
> moveRect.width, moveRect.height?
>
> _______________________________________________
> webkit-dev mailing list
> webkit-dev at lists.webkit.org
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-dev/attachments/20110502/dd796a0e/attachment.html>
More information about the webkit-dev
mailing list