Changeset 126166 in webkit


Ignore:
Timestamp:
Aug 21, 2012 10:02:28 AM (12 years ago)
Author:
tonikitoo@webkit.org
Message:

[BlackBerry] Properly notify WebKit when Client stops in-region scrolling
https://bugs.webkit.org/show_bug.cgi?id=94603
PR #195813

Reviewed by Goerge Staikos.
Patch by Antonio Gomes <agomes@rim.com>

Simplify the API to get a notification of when a in-region
scrolling has finished.

  • Api/WebPage.cpp:

(BlackBerry::WebKit::WebPagePrivate::notifyInRegionScrollStopped):
Removed an unneeded parameter.
(BlackBerry::WebKit::WebPage::notifyInRegionScrollStopped):
Ditto.

  • Api/WebPage.h:
  • Api/WebPage_p.h:

(WebPagePrivate):

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

Legend:

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

    r125908 r126166  
    14981498}
    14991499
    1500 void WebPagePrivate::notifyInRegionScrollStatusChanged(bool status)
    1501 {
    1502     if (!status && m_inRegionScroller->d->hasNode()) {
     1500void WebPagePrivate::notifyInRegionScrollStopped()
     1501{
     1502    if (m_inRegionScroller->d->hasNode()) {
    15031503        enqueueRenderingOfClippedContentOfScrollableNodeAfterInRegionScrolling(m_inRegionScroller->d->node());
    15041504        m_inRegionScroller->d->reset();
     
    15061506}
    15071507
    1508 void WebPage::notifyInRegionScrollStatusChanged(bool status)
    1509 {
    1510     d->notifyInRegionScrollStatusChanged(status);
     1508void WebPage::notifyInRegionScrollStopped()
     1509{
     1510    d->notifyInRegionScrollStopped();
    15111511}
    15121512
  • trunk/Source/WebKit/blackberry/Api/WebPage.h

    r125324 r126166  
    177177    void setScrollPosition(const Platform::IntPoint&);
    178178    bool scrollBy(const Platform::IntSize&, bool scrollMainFrame = true);
    179     void notifyInRegionScrollStatusChanged(bool status);
     179    void notifyInRegionScrollStopped();
    180180    void setScrollOriginPoint(const Platform::IntPoint&);
    181181
  • trunk/Source/WebKit/blackberry/Api/WebPage_p.h

    r125796 r126166  
    151151
    152152    void enqueueRenderingOfClippedContentOfScrollableNodeAfterInRegionScrolling(WebCore::Node*);
    153     void notifyInRegionScrollStatusChanged(bool status);
     153    void notifyInRegionScrollStopped();
    154154    void setScrollOriginPoint(const Platform::IntPoint&);
    155155    void setHasInRegionScrollableAreas(bool);
  • trunk/Source/WebKit/blackberry/ChangeLog

    r126128 r126166  
     12012-08-21  Antonio Gomes  <agomes@rim.com>
     2
     3        [BlackBerry] Properly notify WebKit when Client stops in-region scrolling
     4        https://bugs.webkit.org/show_bug.cgi?id=94603
     5        PR #195813
     6
     7        Reviewed by Goerge Staikos.
     8
     9        Simplify the API to get a notification of when a in-region
     10        scrolling has finished.
     11
     12        * Api/WebPage.cpp:
     13        (BlackBerry::WebKit::WebPagePrivate::notifyInRegionScrollStopped):
     14        Removed an unneeded parameter.
     15        (BlackBerry::WebKit::WebPage::notifyInRegionScrollStopped):
     16        Ditto.
     17        * Api/WebPage.h:
     18        * Api/WebPage_p.h:
     19        (WebPagePrivate):
     20
    1212012-08-20  Sean Wang  <Xuewen.Wang@torchmobile.com.cn>
    222
Note: See TracChangeset for help on using the changeset viewer.