⚠ Archived content — this site is no longer maintained.   Current WebKit documentation is at docs.webkit.org.

Changeset 120463 in webkit


Ignore:
Timestamp:
Jun 15, 2012, 8:29:44 AM (14 years ago)
Author:
commit-queue@webkit.org
Message:

[BlackBerry] Remove BackingStoreClient::scrollsHorizontally/scrollsVeritically()
https://bugs.webkit.org/show_bug.cgi?id=89210

Patch by Yong Li <yoli@rim.com> on 2012-06-15
Reviewed by Antonio Gomes.

Remove BackingStoreClient::scrollsHorizontally()/scrollsVeritically(), because
calling them is neither nessary nor safe.

  • Api/BackingStore.cpp:

(BlackBerry::WebKit::BackingStorePrivate::blitContents):
(BlackBerry::WebKit::BackingStorePrivate::blitHorizontalScrollbar):
(BlackBerry::WebKit::BackingStorePrivate::blitVerticalScrollbar):

  • WebKitSupport/BackingStoreClient.cpp:
  • WebKitSupport/BackingStoreClient.h:

(BackingStoreClient):

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

Legend:

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

    r119718 r120463  
    15581558#if ENABLE_SCROLLBARS
    15591559    if (isScrollingOrZooming() && m_client->isMainFrame()) {
    1560         if (m_client->scrollsHorizontally())
    1561             blitHorizontalScrollbar(origin);
    1562         if (m_client->scrollsVertically())
    1563             blitVerticalScrollbar(origin);
     1560        blitHorizontalScrollbar(origin);
     1561        blitVerticalScrollbar(origin);
    15641562    }
    15651563#endif
     
    18011799        return;
    18021800
    1803     ASSERT(m_client->scrollsHorizontally());
    1804 
    18051801    m_webPage->client()->drawHorizontalScrollbar();
    18061802}
     
    18101806    if (!m_webPage->isVisible())
    18111807        return;
    1812 
    1813     ASSERT(m_client->scrollsVertically());
    18141808
    18151809    m_webPage->client()->drawVerticalScrollbar();
  • trunk/Source/WebKit/blackberry/ChangeLog

    r120434 r120463  
     12012-06-15  Yong Li  <yoli@rim.com>
     2
     3        [BlackBerry] Remove BackingStoreClient::scrollsHorizontally/scrollsVeritically()
     4        https://bugs.webkit.org/show_bug.cgi?id=89210
     5
     6        Reviewed by Antonio Gomes.
     7
     8        Remove BackingStoreClient::scrollsHorizontally()/scrollsVeritically(), because
     9        calling them is neither nessary nor safe.
     10
     11        * Api/BackingStore.cpp:
     12        (BlackBerry::WebKit::BackingStorePrivate::blitContents):
     13        (BlackBerry::WebKit::BackingStorePrivate::blitHorizontalScrollbar):
     14        (BlackBerry::WebKit::BackingStorePrivate::blitVerticalScrollbar):
     15        * WebKitSupport/BackingStoreClient.cpp:
     16        * WebKitSupport/BackingStoreClient.h:
     17        (BackingStoreClient):
     18
    1192012-06-15  Sheriff Bot  <webkit.review.bot@gmail.com>
    220
  • trunk/Source/WebKit/blackberry/WebKitSupport/BackingStoreClient.cpp

    r116657 r120463  
    381381}
    382382
    383 bool BackingStoreClient::scrollsHorizontally() const
    384 {
    385     return transformedActualVisibleSize().width() < transformedContentsSize().width();
    386 }
    387 
    388 bool BackingStoreClient::scrollsVertically() const
    389 {
    390     return transformedActualVisibleSize().height() < transformedContentsSize().height();
    391 }
    392 
    393383bool BackingStoreClient::isClientGeneratedScroll() const
    394384{
  • trunk/Source/WebKit/blackberry/WebKitSupport/BackingStoreClient.h

    r107716 r120463  
    9595    bool isFocused() const;
    9696
    97     bool scrollsHorizontally() const;
    98     bool scrollsVertically() const;
    99 
    10097    bool isClientGeneratedScroll() const;
    10198    void setIsClientGeneratedScroll(bool);
Note: See TracChangeset for help on using the changeset viewer.