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

Changeset 182673 in webkit


Ignore:
Timestamp:
Apr 12, 2015, 1:28:44 PM (11 years ago)
Author:
Simon Fraser
Message:

Scrollbars in composited overflow and iframes fail to render on Mac
https://bugs.webkit.org/show_bug.cgi?id=143647
rdar://problem/20340544

Reviewed by Darin Adler.

When adding support for drawing scrollbars on the scrolling thread, we inadvertently
disabled scrollbar drawing in other composited, main-thread scrolling configurations.

Fix by having Scrollbar::supportsUpdateOnSecondaryThread() only return true if
the scrollable area is using async scrolling.

Sadly, we can't layout-test this.

  • platform/Scrollbar.cpp:

(WebCore::Scrollbar::supportsUpdateOnSecondaryThread):

Location:
trunk/Source/WebCore
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r182672 r182673  
     12015-04-12  Simon Fraser  <simon.fraser@apple.com>
     2
     3        Scrollbars in composited overflow and iframes fail to render on Mac
     4        https://bugs.webkit.org/show_bug.cgi?id=143647
     5        rdar://problem/20340544
     6
     7        Reviewed by Darin Adler.
     8
     9        When adding support for drawing scrollbars on the scrolling thread, we inadvertently
     10        disabled scrollbar drawing in other composited, main-thread scrolling configurations.
     11       
     12        Fix by having Scrollbar::supportsUpdateOnSecondaryThread() only return true if
     13        the scrollable area is using async scrolling.
     14       
     15        Sadly, we can't layout-test this.
     16
     17        * platform/Scrollbar.cpp:
     18        (WebCore::Scrollbar::supportsUpdateOnSecondaryThread):
     19
    1202015-04-12  Simon Fraser  <simon.fraser@apple.com>
    221
  • trunk/Source/WebCore/platform/Scrollbar.cpp

    r180548 r182673  
    531531#if ENABLE(ASYNC_SCROLLING) && PLATFORM(MAC) && __MAC_OS_X_VERSION_MIN_REQUIRED >= 101000
    532532    return !m_scrollableArea.forceUpdateScrollbarsOnMainThreadForPerformanceTesting()
    533         && (m_scrollableArea.hasLayerForVerticalScrollbar() || m_scrollableArea.hasLayerForHorizontalScrollbar());
     533        && (m_scrollableArea.hasLayerForVerticalScrollbar() || m_scrollableArea.hasLayerForHorizontalScrollbar())
     534        && m_scrollableArea.usesAsyncScrolling();
    534535#else
    535536    return false;
Note: See TracChangeset for help on using the changeset viewer.