Changeset 128230 in webkit


Ignore:
Timestamp:
Sep 11, 2012 3:25:29 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] add a way to overscroll non-overflown content
https://bugs.webkit.org/show_bug.cgi?id=96331
PR #195305

Patch by Antonio Gomes <agomes@rim.com> on 2012-09-11
Reviewed by Yong Li.

Check -webkit-overflow-scrolling value for '-blackberry-touch' instead
of checking a custom HTML5 attribute.

No behavioural change. Mostly a rework of r128142.

  • Api/InRegionScroller.cpp:

(BlackBerry::WebKit::canScrollRenderBox):

Location:
trunk/Source/WebKit/blackberry
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit/blackberry/Api/InRegionScroller.cpp

    r128142 r128230  
    368368    // We use this to make non-overflown contents layers to actually
    369369    // be overscrollable.
    370     if (box->layer() && box->layer()->usesCompositedScrolling()
    371         && box->layer()->enclosingElement() && box->layer()->enclosingElement()->isElementNode()) {
    372         DEFINE_STATIC_LOCAL(QualifiedName, forceOverscrollAttr, (nullAtom, "data-blackberry-force-overscroll", nullAtom));
    373 
    374         Element* element = static_cast<Element*>(box->layer()->enclosingElement());
    375         if (element->fastHasAttribute(forceOverscrollAttr))
     370    if (box->layer() && box->layer()->usesCompositedScrolling()) {
     371        if (box->style()->overflowScrolling() == OSBlackberryTouch)
    376372            return true;
    377373    }
  • trunk/Source/WebKit/blackberry/ChangeLog

    r128226 r128230  
     12012-09-11  Antonio Gomes  <agomes@rim.com>
     2
     3        [BlackBerry] add a way to overscroll non-overflown content
     4        https://bugs.webkit.org/show_bug.cgi?id=96331
     5        PR #195305
     6
     7        Reviewed by Yong Li.
     8
     9        Check -webkit-overflow-scrolling value for '-blackberry-touch' instead
     10        of checking a custom HTML5 attribute.
     11
     12        No behavioural change. Mostly a rework of r128142.
     13
     14        * Api/InRegionScroller.cpp:
     15        (BlackBerry::WebKit::canScrollRenderBox):
     16
    1172012-09-11  Rob Buis  <rbuis@rim.com>
    218
Note: See TracChangeset for help on using the changeset viewer.