<html>
    <head>
      <base href="https://bugs.webkit.org/" />
    </head>
    <body>
      <p>
        <div>
            <b><a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Implement overlay scrollbars"
   href="https://bugs.webkit.org/show_bug.cgi?id=153405#c8">Comment # 8</a>
              on <a class="bz_bug_link 
          bz_status_NEW "
   title="NEW - [GTK] Implement overlay scrollbars"
   href="https://bugs.webkit.org/show_bug.cgi?id=153405">bug 153405</a>
              from <span class="vcard"><a class="email" href="mailto:cgarcia&#64;igalia.com" title="Carlos Garcia Campos &lt;cgarcia&#64;igalia.com&gt;"> <span class="fn">Carlos Garcia Campos</span></a>
</span></b>
        <pre>(In reply to <a href="show_bug.cgi?id=153405#c4">comment #4</a>)
<span class="quote">&gt; Comment on <span class=""><a href="attachment.cgi?id=269692&amp;action=diff" name="attach_269692" title="Patch">attachment 269692</a> <a href="attachment.cgi?id=269692&amp;action=edit" title="Patch">[details]</a></span>
&gt; Patch
&gt; 
&gt; View in context:
&gt; <a href="https://bugs.webkit.org/attachment.cgi?id=269692&amp;action=review">https://bugs.webkit.org/attachment.cgi?id=269692&amp;action=review</a>
&gt; 
&gt; &gt; Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp:238
&gt; &gt; +    m_usesOverlayScrollbars = g_strcmp0(g_getenv(&quot;GTK_OVERLAY_SCROLLING&quot;), &quot;0&quot;);
&gt; 
&gt; Is this really the right test...?</span >

Yes.

<span class="quote">&gt; It's not a style property?</span >

No. It's GtkScrolledWindow API, gtk_scrolled_window_set_overlay_scrolling(). We could probably add a WebKitSetting.

<span class="quote">&gt; I assumed this
&gt; variable was to turn off overlay scrolling for debugging purposes.</span >

Yes, this is probably just for debugging, I'm not sure it's documented. I added it to match what GTK does, so that if someone runs any GTK+ app containing a WebView with the env var, we will honor it too. And also made my life easier when developing this. 

<span class="quote">&gt; Are all
&gt; themes expected to implement overlay scrollbars?</span >

It doesn't really matter. If a theme doesn't implement overlay scrollbars, the overlay-indicator class will not have any effect in the rendering, so we will end up rendering the scrollbars following the theme but on top of the contents and hiding/showing them. Same would happen with GtkScrolledWindow, and I would say it's a theme issue not ours.

<span class="quote">&gt; I'm halfway pleased that the technical limitation of threaded compositor
&gt; necessitates implementing overlay scrollbars, because now we have overlay
&gt; scrollbars. But it's disappointing that threaded compositor will prevent us
&gt; from rendering non-overlay scrollbars. I expect this could cause scrollbars
&gt; to look quite bad with anything besides Adwaita or Ambiance. Can you or Yoon
&gt; explain the technical limitation here?</span >

I have no idea. But I don't think it's that problematic, GTK+ is unusable with any other theme than Adwaita nowadays, and new themes will probably implement olverlay-indicator to look good with GtkScrolledwindow.

<span class="quote">&gt; &gt; Source/WebCore/platform/gtk/ScrollbarThemeGtk.cpp:432
&gt; &gt; +#if GTK_CHECK_VERSION(3, 19, 8)
&gt; 
&gt; I don't understand this version check. 3.19.7 was released last week; I
&gt; don't see any scrollbar-related changes since then?</span >

<a href="https://git.gnome.org/browse/gtk+/commit/?id=0f7b4dad0f6cef80172638efb019ce094d7eadee">https://git.gnome.org/browse/gtk+/commit/?id=0f7b4dad0f6cef80172638efb019ce094d7eadee</a>

<span class="quote">&gt; I would just get rid of the check; it's enough that the code works with GTK+
&gt; master, that's what you and I are going to use, we're the people testing it
&gt; so optimize for us. Otherwise I'd have to manually remove the check to test
&gt; this code.</span >

It will probably crash if someone uses 3.19.7, it's just temporary, we should change all the ifdefs in this file (and RenderThemeGtk) once 3.20 is released.</pre>
        </div>
      </p>
      <hr>
      <span>You are receiving this mail because:</span>
      
      <ul>
          <li>You are the assignee for the bug.</li>
      </ul>
    </body>
</html>