<?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>30143</bug_id>
          
          <creation_ts>2009-10-06 16:55:52 -0700</creation_ts>
          <short_desc>GraphicsContextSkia draws paths incorrectly</short_desc>
          <delta_ts>2013-04-09 12:48:36 -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>All</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>0</everconfirmed>
          <reporter name="Andrew Scherkus">scherkus</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>schenney</cc>
    
    <cc>silviapf</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>152896</commentid>
    <comment_count>0</comment_count>
    <who name="Andrew Scherkus">scherkus</who>
    <bug_when>2009-10-06 16:55:52 -0700</bug_when>
    <thetext>I experienced this when writing RenderMediaControlsChromium.

I would create a rounded rectangle path the add it via addPath() then fill it via fillPath() with alpha blending.  It rendered correctly, but mousing over/using scroll wheel on the page would cause the re-fill the area, creating a different appearance.

I&apos;m thinking context isn&apos;t being saved correctly or something.. I&apos;ll try and get a better repro steps.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642987</commentid>
    <comment_count>1</comment_count>
    <who name="Silvia Pfeiffer">silviapf</who>
    <bug_when>2012-06-06 17:17:15 -0700</bug_when>
    <thetext>This is happening in Skia because we only draw rounded borders when the rounding fits into the rectangle.
See this code in Source/WebCore/platform/graphics/skia/GraphicsContextSkia.cpp :

Function: void GraphicsContext::fillRoundedRect()

    if (topLeft.width() + topRight.width() &gt; rect.width()
            || bottomLeft.width() + bottomRight.width() &gt; rect.width()
            || topLeft.height() + bottomLeft.height() &gt; rect.height()
            || topRight.height() + bottomRight.height() &gt; rect.height()) {
        // Not all the radii fit, return a rect. This matches the behavior of
        // Path::createRoundedRectangle. Without this we attempt to draw a round
        // shadow for a square box.
        fillRect(rect, color, colorSpace);
        return;
    }

Thus, when the volume slider is too close to 0% or to 100%, the rectangle gets too small to be able to draw the arcs.

See bug https://bugs.webkit.org/show_bug.cgi?id=23882 .

I don&apos;t quite know how to implement the rounded fillers now. Any suggestions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>642991</commentid>
    <comment_count>2</comment_count>
    <who name="Andrew Scherkus">scherkus</who>
    <bug_when>2012-06-06 17:22:33 -0700</bug_when>
    <thetext>Oh my I filed this bug back waaaaaaay back when I initially was working on the original controls :P

Are you still hitting it?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>643087</commentid>
    <comment_count>3</comment_count>
    <who name="Silvia Pfeiffer">silviapf</who>
    <bug_when>2012-06-06 19:18:22 -0700</bug_when>
    <thetext>I can actually get around this if I make the right side non-rounded underneath the slider thumbs. Also, I have to take the zoomFactor into account.

Given all this, it might make sense to re-write this code by introducing a div for the background color and a div for the highlighted buffered range.

I&apos;ll continue to try in C++ for now. :-)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>644291</commentid>
    <comment_count>4</comment_count>
    <who name="Silvia Pfeiffer">silviapf</who>
    <bug_when>2012-06-07 21:18:05 -0700</bug_when>
    <thetext>I think we can close this - I have a patch for the video controls that works.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>