Changeset 169065 in webkit


Ignore:
Timestamp:
May 19, 2014 2:09:01 PM (10 years ago)
Author:
Beth Dakin
Message:

Scrollbars display incorrectly after switching between fast and slow scrolling
mode, affects Find and real sites
https://bugs.webkit.org/show_bug.cgi?id=133077
-and corresponding-
<rdar://problem/16888608>

Reviewed by Tim Horton.

We should always return true here when updating on the secondary thread is
supported. It does not need to be gated on whether we are actively taking
advantage of that support at this moment.

  • platform/Scrollbar.cpp:

(WebCore::Scrollbar::supportsUpdateOnSecondaryThread):

Always update the presentationValue whenever we update the doubleValue just to
keep them in sync.

  • platform/mac/ScrollbarThemeMac.mm:

(WebCore::ScrollbarThemeMac::setPaintCharacteristicsForScrollbar):

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r169063 r169065  
     12014-05-19  Beth Dakin  <bdakin@apple.com>
     2
     3        Scrollbars display incorrectly after switching between fast and slow scrolling
     4        mode, affects Find and real sites
     5        https://bugs.webkit.org/show_bug.cgi?id=133077
     6        -and corresponding-
     7        <rdar://problem/16888608>
     8
     9        Reviewed by Tim Horton.
     10
     11        We should always return true here when updating on the secondary thread is
     12        supported. It does not need to be gated on whether we are actively taking
     13        advantage of that support at this moment.
     14        * platform/Scrollbar.cpp:
     15        (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
     16
     17        Always update the presentationValue whenever we update the doubleValue just to
     18        keep them in sync.
     19        * platform/mac/ScrollbarThemeMac.mm:
     20        (WebCore::ScrollbarThemeMac::setPaintCharacteristicsForScrollbar):
     21
    1222014-05-19  Simon Fraser  <simon.fraser@apple.com>
    223
  • trunk/Source/WebCore/platform/Scrollbar.cpp

    r165676 r169065  
    551551    // the necessary support within AppKit.
    552552#if ENABLE(ASYNC_SCROLLING) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
    553     return m_scrollableArea ? !m_scrollableArea->updatesScrollLayerPositionOnMainThread() : false;
     553    return true;
    554554#else
    555555    return false;
  • trunk/Source/WebCore/platform/mac/ScrollbarThemeMac.mm

    r165918 r169065  
    480480    [painter setBoundsSize:scrollbar->frameRect().size()];
    481481    [painter setDoubleValue:value];
     482    [painter setPresentationValue:value];
    482483    [painter setKnobProportion:proportion];
    483484    END_BLOCK_OBJC_EXCEPTIONS;
Note: See TracChangeset for help on using the changeset viewer.