Changeset 44079 in webkit


Ignore:
Timestamp:
May 22, 2009 10:47:53 PM (15 years ago)
Author:
zecke@webkit.org
Message:

Ask the Scrollbar for the orientation.

https://bugs.webkit.org/show_bug.cgi?id=25684

Use Scrollbar::orientation to figure out the
direction of scrolling.

Location:
trunk/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/WebCore/ChangeLog

    r44075 r44079  
     12009-05-22  Holger Hans Peter Freyther  <zecke@selfish.org>
     2
     3        Reviewed by Maciej Stachowiak.
     4
     5        https://bugs.webkit.org/show_bug.cgi?id=25684
     6
     7        Ask the Scrollbar for the orientation.
     8
     9        Use Scrollbar::orientation to figure out the
     10        direction of scrolling.
     11
     12        * platform/ScrollView.cpp:
     13        (WebCore::ScrollView::valueChanged):
     14
    1152009-05-22  Darin Adler  <darin@apple.com>
    216
  • trunk/WebCore/platform/ScrollView.cpp

    r43858 r44079  
    239239    IntSize newOffset = m_scrollOffset;
    240240    if (scrollbar) {
    241         if (scrollbar == m_horizontalScrollbar)
     241        if (scrollbar->orientation() == HorizontalScrollbar)
    242242            newOffset.setWidth(scrollbar->value());
    243         else if (scrollbar == m_verticalScrollbar)
     243        else if (scrollbar->orientation() == VerticalScrollbar)
    244244            newOffset.setHeight(scrollbar->value());
    245245    }
Note: See TracChangeset for help on using the changeset viewer.