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 <[email protected]> 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
> [email protected]
> http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev
>
>
_______________________________________________
webkit-dev mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-dev

Reply via email to