<?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>57907</bug_id>
          
          <creation_ts>2011-04-05 17:02:36 -0700</creation_ts>
          <short_desc>Skia incorrectly draws fillRoundedRect</short_desc>
          <delta_ts>2011-04-05 22:12:29 -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>WebCore Misc.</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</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="Adrienne Walker">enne</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>agl</cc>
    
    <cc>enne</cc>
    
    <cc>morrita</cc>
    
    <cc>senorblanco</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>thakis</cc>
    
    <cc>tkent</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>379971</commentid>
    <comment_count>0</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2011-04-05 17:02:36 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/82969/trunk/Source/WebCore/rendering/RenderBoxModelObject.cpp turned on a new fast path for rendering rounded corners.  This broke a number of tests:

http://test-results.appspot.com/dashboards/flakiness_dashboard.html#master=ChromiumWebkit&amp;tests=fast/blockflow/border-radius-clipping-vertical-lr.html,fast/blockflow/box-shadow-horizontal-bt.html,fast/blockflow/box-shadow-vertical-lr.html,fast/blockflow/box-shadow-vertical-rl.html,fast/borders/border-radius-huge-assert.html,fast/borders/borderRadiusAllStylesAllCorners.html,fast/borders/borderRadiusArcs01.html,fast/borders/borderRadiusDashed01.html,fast/borders/borderRadiusDashed02.html,fast/borders/borderRadiusDashed03.html,fast/borders/borderRadiusDotted01.html,fast/borders/borderRadiusDotted02.html,fast/borders/borderRadiusDotted03.html,fast/borders/borderRadiusDouble01.html,fast/borders/borderRadiusDouble02.html,fast/borders/borderRadiusDouble03.html,fast/borders/borderRadiusGroove01.html,fast/borders/borderRadiusGroove02.html,fast/borders/borderRadiusInset01.html,fast/borders/borderRadiusInvalidColor.html,fast/borders/borderRadiusOutset01.html,fast/borders/borderRadiusRidge01.html,fast/borders/borderRadiusSolid01.html,fast/borders/borderRadiusSolid02.html,fast/borders/borderRadiusSolid03.html,fast/box-shadow/border-radius-big.html,fast/box-shadow/inset-with-extraordinary-radii-and-border.html,fast/box-shadow/inset.html,fast/box-shadow/spread-multiple-inset.html,fast/box-shadow/spread-multiple-normal.html,fast/box-shadow/spread.html,fast/css/text-input-with-webkit-border-radius.html,fast/forms/basic-selects.html,fast/layers/video-layer.html,fast/overflow/border-radius-clipping.html,fast/repaint/border-radius-repaint.html,fast/replaced/border-radius-clip.html,fast/transforms/shadows.html,media/audio-controls-rendering.html,media/controls-after-reload.html,media/controls-strict.html,media/controls-styling.html,media/controls-without-preload.html,media/media-document-audio-repaint.html,media/video-controls-rendering.html,media/video-display-toggle.html,media/video-empty-source.html,media/video-no-audio.html,media/video-volume-slider.html,media/video-zoom-controls.html,svg/custom/svg-fonts-in-html.html

It essentially ends up rendering the background color as black instead of the correct color.

This bug doesn&apos;t occur on Mac, just Windows and Linux, so seems likely a Skia bug.  If I use fillRect instead fillRoundedRect, the color is right (even if the dimensions are wrong).  So, it seems like a fillRoundedRect problem.

I&apos;m going to #ifdef it out temporarily until this can get addressed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379974</commentid>
    <comment_count>1</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-04-05 17:04:36 -0700</bug_when>
    <thetext>GraphicsContext::fillRoundedRect() in GraphicsContextSkia.cpp ignores its |color| parameter, maybe that&apos;s why?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379977</commentid>
    <comment_count>2</comment_count>
    <who name="Nico Weber">thakis</who>
    <bug_when>2011-04-05 17:07:43 -0700</bug_when>
    <thetext>Does this help?


diff --git a/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp b/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
index df680eb..6d57fb8 100644
--- a/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
+++ b/Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp
@@ -853,6 +853,7 @@ void GraphicsContext::fillRoundedRect(const IntRect&amp; rect,
 
     SkPaint paint;
     platformContext()-&gt;setupPaintForFilling(&amp;paint);
+    paint.setColor(color.rgb());
     platformContext()-&gt;canvas()-&gt;drawPath(path, paint);
 }</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379982</commentid>
    <comment_count>3</comment_count>
      <attachid>88339</attachid>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2011-04-05 17:16:16 -0700</bug_when>
    <thetext>Created attachment 88339
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>379992</commentid>
    <comment_count>4</comment_count>
    <who name="Adrienne Walker">enne</who>
    <bug_when>2011-04-05 17:28:41 -0700</bug_when>
    <thetext>Committed r83002: &lt;http://trac.webkit.org/changeset/83002&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>380125</commentid>
    <comment_count>5</comment_count>
    <who name="Kent Tamura">tkent</who>
    <bug_when>2011-04-05 22:12:29 -0700</bug_when>
    <thetext>Rebaseline by http://trac.webkit.org/changeset/83017</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>88339</attachid>
            <date>2011-04-05 17:16:16 -0700</date>
            <delta_ts>2011-04-05 17:19:02 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-57907-20110405171615.patch</filename>
            <type>text/plain</type>
            <size>1302</size>
            <attacher name="Adrienne Walker">enne</attacher>
            
              <data encoding="base64">U3VidmVyc2lvbiBSZXZpc2lvbjogODI5ODMKZGlmZiAtLWdpdCBhL1NvdXJjZS9XZWJDb3JlL0No
YW5nZUxvZyBiL1NvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwppbmRleCAzYmJiNmQyZmM3Njg2ZDhl
ZWQ0ZDlkZDNhMDE2ZWUyOTUxZDNhNzMzLi45ZmZkMDkxYmNmOTAxMjUwNzIwMDc4ODAyYmQ3MWUy
ZWQ1Zjk3ZDU4IDEwMDY0NAotLS0gYS9Tb3VyY2UvV2ViQ29yZS9DaGFuZ2VMb2cKKysrIGIvU291
cmNlL1dlYkNvcmUvQ2hhbmdlTG9nCkBAIC0xLDMgKzEsMTMgQEAKKzIwMTEtMDQtMDUgIEFkcmll
bm5lIFdhbGtlciAgPGVubmVAZ29vZ2xlLmNvbT4KKworICAgICAgICBSZXZpZXdlZCBieSBOT0JP
RFkgKE9PUFMhKS4KKworICAgICAgICBDb3JyZWN0bHkgc2V0IGNvbG9yIHdoZW4gdXNpbmcgc2tp
YSdzIGZpbGxSb3VuZGVkUmVjdC4KKyAgICAgICAgaHR0cHM6Ly9idWdzLndlYmtpdC5vcmcvc2hv
d19idWcuY2dpP2lkPTU3OTA3CisKKyAgICAgICAgKiBwbGF0Zm9ybS9ncmFwaGljcy9za2lhL0dy
YXBoaWNzQ29udGV4dFNraWEuY3BwOgorICAgICAgICAoV2ViQ29yZTo6R3JhcGhpY3NDb250ZXh0
OjpmaWxsUm91bmRlZFJlY3QpOgorCiAyMDExLTA0LTA0ICBWaXRhbHkgUmVwZXNoa28gIDx2aXRh
bHlyQGNocm9taXVtLm9yZz4KIAogICAgICAgICBSZXZpZXdlZCBieSBBZGFtIEJhcnRoLgpkaWZm
IC0tZ2l0IGEvU291cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvc2tpYS9HcmFwaGljc0Nv
bnRleHRTa2lhLmNwcCBiL1NvdXJjZS9XZWJDb3JlL3BsYXRmb3JtL2dyYXBoaWNzL3NraWEvR3Jh
cGhpY3NDb250ZXh0U2tpYS5jcHAKaW5kZXggZGY2ODBlYjZjYmRmMzFhNjg5ODgxOTQ1NzQyZGYw
YTc2NmRiNDk5YS4uNmQ1N2ZiODdmYzIwZjlhYzRmODM4OWYyODg4YzU2NzkxNjIyODJjZCAxMDA2
NDQKLS0tIGEvU291cmNlL1dlYkNvcmUvcGxhdGZvcm0vZ3JhcGhpY3Mvc2tpYS9HcmFwaGljc0Nv
bnRleHRTa2lhLmNwcAorKysgYi9Tb3VyY2UvV2ViQ29yZS9wbGF0Zm9ybS9ncmFwaGljcy9za2lh
L0dyYXBoaWNzQ29udGV4dFNraWEuY3BwCkBAIC04NTMsNiArODUzLDcgQEAgdm9pZCBHcmFwaGlj
c0NvbnRleHQ6OmZpbGxSb3VuZGVkUmVjdChjb25zdCBJbnRSZWN0JiByZWN0LAogCiAgICAgU2tQ
YWludCBwYWludDsKICAgICBwbGF0Zm9ybUNvbnRleHQoKS0+c2V0dXBQYWludEZvckZpbGxpbmco
JnBhaW50KTsKKyAgICBwYWludC5zZXRDb2xvcihjb2xvci5yZ2IoKSk7CiAgICAgcGxhdGZvcm1D
b250ZXh0KCktPmNhbnZhcygpLT5kcmF3UGF0aChwYXRoLCBwYWludCk7CiB9CiAK
</data>
<flag name="review"
          id="80829"
          type_id="1"
          status="+"
          setter="tony"
    />
          </attachment>
      

    </bug>

</bugzilla>