Skip to content
  • tonikitoo@webkit.org's avatar
    BlackBerry] Shrink the in-region nested scrollable list as soon as we can · c1757004
    tonikitoo@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=95019
    
    Reviewed by Rob Buis.
    Patch by Antonio Gomes <agomes@rim.com>
    
    We cache all possible nested scrollable in-region layers given a point.
    It is up to the client to pick a view, based on the scroll position and limits
    of each layer, and on the diretion user swipes its finger.
    From the point we pick a view on, we stick with it, and any other
    possibly cached layer can be uncached, as it won't be needed.
    Patch providesa simple solution to that.
    
    * Api/InRegionScroller.cpp:
    (BlackBerry::WebKit::InRegionScrollerPrivate::InRegionScrollerPrivate):
    (BlackBerry::WebKit::InRegionScrollerPrivate::reset):
    (BlackBerry::WebKit::InRegionScrollerPrivate::setScrollPositionWebKitThread):
    (BlackBerry::WebKit::InRegionScrollerPrivate::calculateActiveAndShrinkCachedScrollableAreas):
    (WebKit):
    (BlackBerry::WebKit::InRegionScrollerPrivate::calculateInRegionScrollableAreasForPoint):
    * Api/InRegionScroller_p.h:
    (InRegionScrollerPrivate):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@126767 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    c1757004