-
tonikitoo@webkit.org authored
https://bugs.webkit.org/show_bug.cgi?id=93848 PR #190986 Reviewed by Yong Li. Patch by Antonio Gomes <agomes@rim.com> Patch adds a WebKit thread setScrollPosition-like API to InRegionScroller. It fixes a mismatch we had of setting a layer's scroll positing directly via ::setScrollPosition on the UI thread, but dispatching a coalesceable scrollBy(delta) message to WebKit thread. * Api/InRegionScroller.cpp: (BlackBerry::WebKit::InRegionScroller::setScrollPositionCompositingThread): Changed the API name to match other thread specific methods naming. (WebKit): (BlackBerry::WebKit::InRegionScroller::setScrollPositionWebKitThread): Added a setScrollPosition-like method to InRegionScroller public API. Used together with its UI-thread counterpart, it can fix some rounding errors we have due to mixing ::setScrollPosition and ::scrollBy methods. (BlackBerry::WebKit::InRegionScrollerPrivate::setScrollPositionCompositingThread): Method renamed. See reasons above. (BlackBerry::WebKit::InRegionScrollerPrivate::setScrollPositionWebKitThread): Calls fowards the call to ::setLayerScrollPosition (below). (BlackBerry::WebKit::InRegionScrollerPrivate::setLayerScrollPosition): Sets the scroll position of a given RenderLayer. * Api/InRegionScroller.h: (InRegionScroller): * Api/InRegionScroller_p.h: (WebCore): (InRegionScrollerPrivate): * WebKitSupport/InRegionScrollableArea.cpp: (BlackBerry::WebKit::InRegionScrollableArea::InRegionScrollableArea): Cache the RenderLayer object associated to a given scrollable area instead of its LayerCompositingThread. This way we can use it for scrolling from both Compositing/UI and WebKit threads. git-svn-id: http://svn.webkit.org/repository/webkit/trunk@125434 268f45cc-cd09-0410-ab3c-d52691b4dbfc
6f553482