Changeset 140046 in webkit


Ignore:
Timestamp:
Jan 17, 2013 2:38:23 PM (11 years ago)
Author:
yoli@rim.com
Message:

[BlackBerry] InRegionScroller should notify client before it deletes all the scrollables
https://bugs.webkit.org/show_bug.cgi?id=107162

Reviewed by Rob Buis.
Internally reviewed by Gen Mak and Mike Fenton.

Move the notification code from notifyInRegionScrollStopped() to reset() as there are
other places where reset() gets called.

  • Api/InRegionScroller.cpp:

(BlackBerry::WebKit::InRegionScrollerPrivate::reset):

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::notifyInRegionScrollStopped):

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

Legend:

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

    r139045 r140046  
    8181void InRegionScrollerPrivate::reset()
    8282{
     83    // Notify the client side to clear InRegion scrollable areas before we destroy them here.
     84    std::vector<Platform::ScrollViewBase*> emptyInRegionScrollableAreas;
     85    m_webPage->m_client->notifyInRegionScrollableAreasChanged(emptyInRegionScrollableAreas);
     86
    8387    m_needsActiveScrollableAreaCalculation = false;
    8488    for (size_t i = 0; i < m_activeInRegionScrollableAreas.size(); ++i)
  • trunk/Source/WebKit/blackberry/Api/WebPage.cpp

    r139955 r140046  
    14291429void WebPagePrivate::notifyInRegionScrollStopped()
    14301430{
    1431     if (m_inRegionScroller->d->isActive()) {
    1432         // Notify the client side to clear InRegion scrollable areas before we destroy them here.
    1433         std::vector<Platform::ScrollViewBase*> emptyInRegionScrollableAreas;
    1434         m_client->notifyInRegionScrollableAreasChanged(emptyInRegionScrollableAreas);
     1431    if (m_inRegionScroller->d->isActive())
    14351432        m_inRegionScroller->d->reset();
    1436     }
    14371433}
    14381434
  • trunk/Source/WebKit/blackberry/ChangeLog

    r140043 r140046  
     12013-01-17  Yong Li  <yoli@rim.com>
     2
     3        [BlackBerry] InRegionScroller should notify client before it deletes all the scrollables
     4        https://bugs.webkit.org/show_bug.cgi?id=107162
     5
     6        Reviewed by Rob Buis.
     7        Internally reviewed by Gen Mak and Mike Fenton.
     8
     9        Move the notification code from notifyInRegionScrollStopped() to reset() as there are
     10        other places where reset() gets called.
     11
     12        * Api/InRegionScroller.cpp:
     13        (BlackBerry::WebKit::InRegionScrollerPrivate::reset):
     14        * Api/WebPage.cpp:
     15        (BlackBerry::WebKit::WebPagePrivate::notifyInRegionScrollStopped):
     16
    1172013-01-17  Mike Fenton  <mifenton@rim.com>
    218
Note: See TracChangeset for help on using the changeset viewer.