Changeset 140046 in webkit
- Timestamp:
- Jan 17, 2013 2:38:23 PM (11 years ago)
- Location:
- trunk/Source/WebKit/blackberry
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit/blackberry/Api/InRegionScroller.cpp
r139045 r140046 81 81 void InRegionScrollerPrivate::reset() 82 82 { 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 83 87 m_needsActiveScrollableAreaCalculation = false; 84 88 for (size_t i = 0; i < m_activeInRegionScrollableAreas.size(); ++i) -
trunk/Source/WebKit/blackberry/Api/WebPage.cpp
r139955 r140046 1429 1429 void WebPagePrivate::notifyInRegionScrollStopped() 1430 1430 { 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()) 1435 1432 m_inRegionScroller->d->reset(); 1436 }1437 1433 } 1438 1434 -
trunk/Source/WebKit/blackberry/ChangeLog
r140043 r140046 1 2013-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 1 17 2013-01-17 Mike Fenton <mifenton@rim.com> 2 18
Note: See TracChangeset
for help on using the changeset viewer.