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

Changeset 203505 in webkit


Ignore:
Timestamp:
Jul 21, 2016, 9:05:16 AM (10 years ago)
Author:
Carlos Garcia Campos
Message:

[GTK][Threaded Compositor] Overlay scrollbars shouldn't be a requirement of the threaded compositor
​https://bugs.webkit.org/show_bug.cgi?id=160020

Reviewed by Michael Catanzaro.

It has been a requirement only because we didn't really know why frame scrollbars were not rendered when using
the threaded compositor. The reason is that RenderView doesn't use layers for FrameView scrollbars by default,
unless using overlay scrollbars. When using the threaded compositor we really need layers for the FrameView
scrollbars even when not using overlay scrollbars.

  • platform/gtk/ScrollbarThemeGtk.cpp:

(WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk): Stop enforcing overlay scrollbars when threaded compositor is enabled.

  • rendering/RenderLayerCompositor.cpp:

(WebCore::RenderLayerCompositor::shouldCompositeOverflowControls): Always use layers for scrollbars when
threaded compositor is enabled.

Location:
trunk/Source/WebCore
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r203503 r203505  
     12016-07-21  Carlos Garcia Campos  <cgarcia@igalia.com>
     2
     3        [GTK][Threaded Compositor] Overlay scrollbars shouldn't be a requirement of the threaded compositor
     4        https://bugs.webkit.org/show_bug.cgi?id=160020
     5
     6        Reviewed by Michael Catanzaro.
     7
     8        It has been a requirement only because we didn't really know why frame scrollbars were not rendered when using
     9        the threaded compositor. The reason is that RenderView doesn't use layers for FrameView scrollbars by default,
     10        unless using overlay scrollbars. When using the threaded compositor we really need layers for the FrameView
     11        scrollbars even when not using overlay scrollbars.
     12
     13        * platform/gtk/ScrollbarThemeGtk.cpp:
     14        (WebCore::ScrollbarThemeGtk::ScrollbarThemeGtk): Stop enforcing overlay scrollbars when threaded compositor is enabled.
     15        * rendering/RenderLayerCompositor.cpp:
     16        (WebCore::RenderLayerCompositor::shouldCompositeOverflowControls): Always use layers for scrollbars when
     17        threaded compositor is enabled.
     18
    1192016-07-21  Carlos Garcia Campos  <cgarcia@igalia.com>
    220
  • trunk/Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp

    r200173 r203505  
    5858{
    5959#if GTK_CHECK_VERSION(3, 20, 0)
    60 #if USE(COORDINATED_GRAPHICS_THREADED)
    61     m_usesOverlayScrollbars = true;
    62 #else
    6360    m_usesOverlayScrollbars = g_strcmp0(g_getenv("GTK_OVERLAY_SCROLLING"), "0");
    64 #endif
    6561#endif
    6662    static bool themeMonitorInitialized = false;
  • trunk/Source/WebCore/rendering/RenderLayerCompositor.cpp

    r203250 r203505  
    30103010        return true;
    30113011
     3012#if !USE(COORDINATED_GRAPHICS_THREADED)
    30123013    if (!frameView.hasOverlayScrollbars())
    30133014        return false;
     3015#endif
    30143016
    30153017    return true;
Note: See TracChangeset for help on using the changeset viewer.