<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>109064</bug_id>
          
          <creation_ts>2013-02-06 10:02:11 -0800</creation_ts>
          <short_desc>[chromium] Default scrollbar theme should be shared with CC compositor.</short_desc>
          <delta_ts>2013-04-08 16:23:08 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>New Bugs</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="W. James MacLean">wjmaclean</reporter>
          <assigned_to name="W. James MacLean">wjmaclean</assigned_to>
          <cc>abarth</cc>
    
    <cc>aelias</cc>
    
    <cc>andersca</cc>
    
    <cc>dglazkov</cc>
    
    <cc>fishd</cc>
    
    <cc>jamesr</cc>
    
    <cc>rbyers</cc>
    
    <cc>schenney</cc>
    
    <cc>tkent+wkapi</cc>
    
    <cc>tonikitoo</cc>
    
    <cc>trchen</cc>
    
    <cc>webkit.review.bot</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>826519</commentid>
    <comment_count>0</comment_count>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2013-02-06 10:02:11 -0800</bug_when>
    <thetext>[chromium] Default scrollbar theme should be shared with CC compositor.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826520</commentid>
    <comment_count>1</comment_count>
      <attachid>186873</attachid>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2013-02-06 10:03:18 -0800</bug_when>
    <thetext>Created attachment 186873
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826522</commentid>
    <comment_count>2</comment_count>
    <who name="WebKit Review Bot">webkit.review.bot</who>
    <bug_when>2013-02-06 10:12:58 -0800</bug_when>
    <thetext>Please wait for approval from abarth@webkit.org, dglazkov@chromium.org, fishd@chromium.org, jamesr@chromium.org or tkent@chromium.org before submitting, as this patch contains changes to the Chromium public API. See also https://trac.webkit.org/wiki/ChromiumWebKitAPI.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826714</commentid>
    <comment_count>3</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2013-02-06 13:34:28 -0800</bug_when>
    <thetext>This seems strange.  For WebKit-created scrollbars, we want to make sure the theming matches so it looks exactly like a WebKit rendered scrollbars.  For scrollbars that aren&apos;t created and owned by WebKit, why would you want to use the same theme?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826723</commentid>
    <comment_count>4</comment_count>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2013-02-06 13:44:45 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; This seems strange.  For WebKit-created scrollbars, we want to make sure the theming matches so it looks exactly like a WebKit rendered scrollbars.  For scrollbars that aren&apos;t created and owned by WebKit, why would you want to use the same theme?

We don&apos;t need the scrollbars to look identical to WebKit ones, so we have a custom painter.

Two responses here:

1) We want the ability to know if the main-frame scrollbars (created by WebKit) will be overlay or not so we will know wether pinch-zoom scrollbars are needed (non-overlay =&gt; yes) or not (overlay =&gt; no) (here we just plumb through the boolean value).

2) We want to be able to render the pinch-zoom scrollbars with the WebKit default theme geometry, *and* to create a ScrollbarLayer we need a WebScrollbarThemeGeometry* that is built from a theme geometry, which in this case is the default theme geometry.

This is my understanding of the approach you described, based on our conversation from two weeks ago (getting at the theme pointer and plumbing it through to CC).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826724</commentid>
    <comment_count>5</comment_count>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2013-02-06 13:45:35 -0800</bug_when>
    <thetext>(In reply to comment #3)
&gt; This seems strange.  For WebKit-created scrollbars, we want to make sure the theming matches so it looks exactly like a WebKit rendered scrollbars.  For scrollbars that aren&apos;t created and owned by WebKit, why would you want to use the same theme?

BTW, this CL is the companion to https://codereview.chromium.org/11550035/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826774</commentid>
    <comment_count>6</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2013-02-06 14:47:49 -0800</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; This seems strange.  For WebKit-created scrollbars, we want to make sure the theming matches so it looks exactly like a WebKit rendered scrollbars.  For scrollbars that aren&apos;t created and owned by WebKit, why would you want to use the same theme?
&gt; 
&gt; We don&apos;t need the scrollbars to look identical to WebKit ones, so we have a custom painter.
&gt; 
&gt; Two responses here:
&gt; 
&gt; 1) We want the ability to know if the main-frame scrollbars (created by WebKit) will be overlay or not so we will know wether pinch-zoom scrollbars are needed (non-overlay =&gt; yes) or not (overlay =&gt; no) (here we just plumb through the boolean value).
&gt; 

How does the default theme make the determination to be overlay or not?  If you want to mirror the setting I think you should look at where it&apos;s coming from.

What would it mean to have a &quot;non-overlay pinch-zoom scrollbar&quot;?  Pinch-zoom scrollbars can&apos;t take layout space (by definition), so doesn&apos;t that mean they are always overlay?


&gt; 2) We want to be able to render the pinch-zoom scrollbars with the WebKit default theme geometry

Why?  Why is WebKit&apos;s default theme geometry the geometry you want for pinch-zoom scrollbars, which aren&apos;t WebKit-related things?  They don&apos;t seem related to me.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826795</commentid>
    <comment_count>7</comment_count>
    <who name="W. James MacLean">wjmaclean</who>
    <bug_when>2013-02-06 15:19:14 -0800</bug_when>
    <thetext>(In reply to comment #6)
&gt;
&gt; 
&gt; How does the default theme make the determination to be overlay or not?  If you want to mirror the setting I think you should look at where it&apos;s coming from.

It&apos;s set as an override to a virtual function. At present. ScrollbarThemeChromium (Default?) always says &apos;false&apos; for usesOverlayScrollbars() whereas ScrollbarThemeChromiumAndroid always says &apos;true&apos;. I figured if I plumbed the value, I&apos;d pick up whichever was in use without having to assume anything other than constancy for a given platform (e.g. ScrollbarTheme won&apos;t give a different answer on subsequent calls).
 
&gt; What would it mean to have a &quot;non-overlay pinch-zoom scrollbar&quot;?  Pinch-zoom scrollbars can&apos;t take layout space (by definition), so doesn&apos;t that mean they are always overlay?

Pinch zoom scrollbars are always overlay. *But* they are only needed *if* the mainframe scrollbars are non-overlay, and they are not needed if the mainframe scrollbars are overlay.

&gt; 
&gt; &gt; 2) We want to be able to render the pinch-zoom scrollbars with the WebKit default theme geometry
&gt; 
&gt; Why?  Why is WebKit&apos;s default theme geometry the geometry you want for pinch-zoom scrollbars, which aren&apos;t WebKit-related things?  They don&apos;t seem related to me.

No, they&apos;re not related, but the WebKit theme suffices just fine for pinch-zoom scrollbars, so why not use it?

This is a challenging conversation to have on the bug ... should we do this by VC tomorrow instead? Obviously I didn&apos;t understand what you wanted, so it would help me to get some clarification if we could talk in real time.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>826943</commentid>
    <comment_count>8</comment_count>
      <attachid>186873</attachid>
    <who name="James Robinson">jamesr</who>
    <bug_when>2013-02-06 18:02:44 -0800</bug_when>
    <thetext>Comment on attachment 186873
Patch

Let&apos;s do that before proceeding.  I&apos;m out the rest of this week.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>186873</attachid>
            <date>2013-02-06 10:03:18 -0800</date>
            <delta_ts>2013-02-06 18:02:44 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-109064-20130206125955.patch</filename>
            <type>text/plain</type>
            <size>3556</size>
            <attacher name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21wb3NpdGUqPihTY3JvbGxiYXJUaGVtZTo6dGhlbWUoKSk7
CisgICAgT3duUHRyPFdlYktpdDo6V2ViU2Nyb2xsYmFyVGhlbWVHZW9tZXRyeT4gZ2VvbWV0cnko
V2ViS2l0OjpXZWJTY3JvbGxiYXJUaGVtZUdlb21ldHJ5TmF0aXZlOjpjcmVhdGUodGhlbWUpKTsK
KworICAgIFdlYktpdDo6UGxhdGZvcm06OmN1cnJlbnQoKS0+Y29tcG9zaXRvclN1cHBvcnQoKS0+
c2V0RGVmYXVsdFdlYlNjcm9sbGJhclRoZW1lR2VvbWV0cnkoZ2VvbWV0cnkubGVha1B0cigpKTsK
KyAgICBXZWJLaXQ6OlBsYXRmb3JtOjpjdXJyZW50KCktPmNvbXBvc2l0b3JTdXBwb3J0KCktPnNl
dERlZmF1bHRUaGVtZVVzZXNPdmVybGF5U2Nyb2xsYmFycyh0aGVtZS0+dXNlc092ZXJsYXlTY3Jv
bGxiYXJzKCkpOwogfQogCiBTY3JvbGxpbmdDb29yZGluYXRvckNocm9taXVtOjp+U2Nyb2xsaW5n
Q29vcmRpbmF0b3JDaHJvbWl1bSgpCg==
</data>
<flag name="review"
          id="206471"
          type_id="1"
          status="-"
          setter="jamesr"
    />
          </attachment>
      

    </bug>

</bugzilla>