• tonikitoo@webkit.org's avatar
    [BlackBerry] Implement a top-down in-region boundary detection in InRegionScrollableArea · bf095e15
    tonikitoo@webkit.org authored
    https://bugs.webkit.org/show_bug.cgi?id=88254
    PR #125237
    
    Reviewed by Rob Buis.
    Patch by Antonio Gomes <agomes@rim.com>
    
    Patch implements a top-down visibleWindowRect calculation for all scrollable
    elements hit-tested by a given point.
    
    The reason on why this approach is better is that it calculates the visible
    window rect from the outtermost scrollable element towards the inner ones, and
    that allows it to use the visible window rect of the previous scrollable element
    as the clipping rect for the current one.
    
    Patch also changes the return vector to store ScrollViewBase pointers, so
    we can make use of static_cast properly.
    
    Internally reviewed by Jakob Petsovits.
    
    * Api/WebPage.cpp:
    (BlackBerry::WebKit::pushBackInRegionScrollable):
    (BlackBerry::WebKit::WebPagePrivate::inRegionScrollableAreasForPoint):
    * Api/WebPageClient.h:
    * Api/WebPage_p.h:
    (WebPagePrivate):
    * WebKitSupport/InRegionScrollableArea.cpp:
    (BlackBerry::WebKit::InRegionScrollableArea::InRegionScrollableArea):
    (BlackBerry::WebKit::InRegionScrollableArea::setVisibleWindowRect):
    (WebKit):
    (BlackBerry::WebKit::InRegionScrollableArea::visibleWindowRect):
    * WebKitSupport/InRegionScrollableArea.h:
    (InRegionScrollableArea):
    
    git-svn-id: http://svn.webkit.org/repository/webkit/trunk@119679 268f45cc-cd09-0410-ab3c-d52691b4dbfc
    bf095e15
ChangeLog 213 KB