<?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>77667</bug_id>
          
          <creation_ts>2012-02-02 12:18:07 -0800</creation_ts>
          <short_desc>[chromium] NOT FOR REVIEW Mark scrollbars as opaque.</short_desc>
          <delta_ts>2012-02-10 11:38:48 -0800</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>
          
          <blocked>77478</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Jonathan Backer">backer</reporter>
          <assigned_to name="Jonathan Backer">backer</assigned_to>
          <cc>danakj</cc>
    
    <cc>enne</cc>
    
    <cc>jamesr</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>548051</commentid>
    <comment_count>0</comment_count>
    <who name="Jonathan Backer">backer</who>
    <bug_when>2012-02-02 12:18:07 -0800</bug_when>
    <thetext>[chromium] NOT FOR REVIEW Mark scrollbars as opaque.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548052</commentid>
    <comment_count>1</comment_count>
      <attachid>125160</attachid>
    <who name="Jonathan Backer">backer</who>
    <bug_when>2012-02-02 12:19:27 -0800</bug_when>
    <thetext>Created attachment 125160
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548055</commentid>
    <comment_count>2</comment_count>
    <who name="Jonathan Backer">backer</who>
    <bug_when>2012-02-02 12:23:42 -0800</bug_when>
    <thetext>When working on https://bugs.webkit.org/show_bug.cgi?id=77478 , I discovered that we&apos;re blending our scroll bars with the debug blue that we&apos;re clearing to in LayerRendererChromium.cpp

I think that this is clearly an error. The attached patch fixes this.

We should also fix it so that Skia gives us an opaque layer (alpha = 1.0).

@danakj: How do we fix Skia? Is this a Skia error that I&apos;m seeing?

@enne: Is there a better way to mark scrollbars opaque?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548086</commentid>
    <comment_count>3</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-02-02 12:55:22 -0800</bug_when>
    <thetext>Yes. If the background is painted then the scrollbar is painted with alpha over top (those AA corner pixels) skia loses 1 on the alpha channel. Then when its drawn with blending you get the compositor blue coming through.

Theres a CL in the works but requires rebaselining the world and I havent worked on it since December.  I&apos;ll post the bug url later.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548088</commentid>
    <comment_count>4</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-02-02 12:57:02 -0800</bug_when>
    <thetext>Secondly I would like to make chromium paint the scrollbars thru the webkit GraphicsContext instead of directly to canvas. Then opaque paint tracking will know they are opaque automatically.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548104</commentid>
    <comment_count>5</comment_count>
    <who name="Dana Jansens">danakj</who>
    <bug_when>2012-02-02 13:10:06 -0800</bug_when>
    <thetext>http://codereview.appspot.com/5494076/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>548226</commentid>
    <comment_count>6</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-02-02 16:14:41 -0800</bug_when>
    <thetext>To state the blindingly obvious, scrollbars are often not opaque so this won&apos;t work generally.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554224</commentid>
    <comment_count>7</comment_count>
    <who name="Jonathan Backer">backer</who>
    <bug_when>2012-02-10 11:09:22 -0800</bug_when>
    <thetext>Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554236</commentid>
    <comment_count>8</comment_count>
    <who name="James Robinson">jamesr</who>
    <bug_when>2012-02-10 11:20:45 -0800</bug_when>
    <thetext>(In reply to comment #7)
&gt; Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha.

I switched us over to mock scrollbars - were you still seeing issues?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>554251</commentid>
    <comment_count>9</comment_count>
    <who name="Jonathan Backer">backer</who>
    <bug_when>2012-02-10 11:38:48 -0800</bug_when>
    <thetext>(In reply to comment #8)
&gt; (In reply to comment #7)
&gt; &gt; Just rebaselined the Linux image expectations to bake in the 1 off error in scrollbar alpha.
&gt; 
&gt; I switched us over to mock scrollbars - were you still seeing issues?

The baselines that I uploaded for the root clear patch were for the Release build (not root clear). I just ran DRT with a Debug build (still root clears to blue) and there is no error.

So you must have fixed it.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>125160</attachid>
            <date>2012-02-02 12:19:27 -0800</date>
            <delta_ts>2012-02-02 12:19:27 -0800</delta_ts>
            <desc>Patch</desc>
            <filename>bug-77667-20120202151926.patch</filename>
            <type>text/plain</type>
            <size>1936</size>
            <attacher name="Jonathan Backer">backer</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogMTA2NTI1CmRpZmYgLS1naXQgYS9Tb3VyY2UvV2ViQ29yZS9D
aGFuZ2VMb2cgYi9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKaW5kZXggNjU2MTc1Y2MwYWIxZWQ5
NGU2MmVlM2Y3YThjNDhlZWNmODE5YzljYS4uMGM5ZDc1MzM3NmJmNGY5NGRmZjA2NmUxOTAyZTY0
ZmRkMWJmMDhjYyAxMDA2NDQKLS0tIGEvU291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ydWUpOwor
I2VuZGlmCiAgICAgI2lmbmRlZiBOREVCVUcKICAgICAgICAgICAgIG1fbGF5ZXJGb3JWZXJ0aWNh
bFNjcm9sbGJhci0+c2V0TmFtZSgidmVydGljYWwgc2Nyb2xsYmFyIik7CiAgICAgI2VuZGlmCg==
</data>

          </attachment>
      

    </bug>

</bugzilla>