<?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>36226</bug_id>
          
          <creation_ts>2010-03-17 10:00:17 -0700</creation_ts>
          <short_desc>[Qt] canvas arc element doesn&apos;t render correctly</short_desc>
          <delta_ts>2010-08-16 17:13:03 -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>Layout and Rendering</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>HTML5</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>lonhutt</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
    
    <cc>kling</cc>
    
    <cc>krit</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>200834</commentid>
    <comment_count>0</comment_count>
    <who name="">lonhutt</who>
    <bug_when>2010-03-17 10:00:17 -0700</bug_when>
    <thetext>the endpoint of a canvas arc element renders with a jagged edge at the start point.

the easiest way i&apos;ve found to see the effect is to install the Arora web browser and view the attached HTML file. Alternatively create a simple Qt web browser that points at the provided HTML file.

I have been unable to reproduce this error in any other WebKit based browser (tested Chrome, Safari, Konqueror) which makes me think it must be a Qt specific bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>200949</commentid>
    <comment_count>1</comment_count>
      <attachid>50952</attachid>
    <who name="">lonhutt</who>
    <bug_when>2010-03-17 13:46:35 -0700</bug_when>
    <thetext>Created attachment 50952
html file that describes 2 canvas arc shapes</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>204482</commentid>
    <comment_count>2</comment_count>
    <who name="Dirk Schulze">krit</who>
    <bug_when>2010-03-26 03:22:32 -0700</bug_when>
    <thetext>This is a Qt-bug. If you create a new path, the starting point is set to 0,0. A workaround is setting moveTo after beginning a new path.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>210319</commentid>
    <comment_count>3</comment_count>
    <who name="">lonhutt</who>
    <bug_when>2010-04-08 12:24:18 -0700</bug_when>
    <thetext>I changed:

ctx.beginPath();
ctx.lineWidth = 8;
ctx.strokeStyle = &quot;#33CCCC&quot;;
ctx.arc(342, 212, 56.25714285714286, 6.997183637540902, 7.5683823018299545, false);
ctx.stroke();
ctx.closePath();

to:

ctx.beginPath();
ctx.moveTo(342, 212);
ctx.lineWidth = 8;
ctx.strokeStyle = &quot;#33CCCC&quot;;
ctx.arc(342, 212, 56.25714285714286, 6.997183637540902, 7.5683823018299545, false);
ctx.stroke();
ctx.closePath();

with no results. What am I doing wrong?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>220933</commentid>
    <comment_count>4</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-05-04 18:46:00 -0700</bug_when>
    <thetext>@Dirk: I think you guys are talking about two separate issues :)
I&apos;ve posted a patch for yours at https://bugs.webkit.org/show_bug.cgi?id=38526

@lonhutt: Jagged edge confirmed on ToT, will investigate.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>265304</commentid>
    <comment_count>5</comment_count>
    <who name="Andreas Kling">kling</who>
    <bug_when>2010-08-16 17:13:03 -0700</bug_when>
    <thetext>This was indeed fixed with http://trac.webkit.org/changeset/59767</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>50952</attachid>
            <date>2010-03-17 13:46:35 -0700</date>
            <delta_ts>2010-03-17 13:46:35 -0700</delta_ts>
            <desc>html file that describes 2 canvas arc shapes</desc>
            <filename>canvasarc.html</filename>
            <type>text/html</type>
            <size>1017</size>
            <attacher>lonhutt</attacher>
            
              <data encoding="base64">PGh0bWw+IAogIDxoZWFkPiAKICAgIDx0aXRsZT5BIGNhbnZhcyBhcmMgZXhhbXBsZTwvdGl0bGU+
IAogICAgPHNjcmlwdCB0eXBlPSJ0ZXh0L2phdmFzY3JpcHQiPiAKZnVuY3Rpb24gZHJhd1NoYXBl
KCl7CiAgLy8gZ2V0IHRoZSBjYW52YXMgZWxlbWVudCB1c2luZyB0aGUgRE9NCiAgdmFyIGNhbnZh
cyA9IGRvY3VtZW50LmdldEVsZW1lbnRCeUlkKCd0dXRvcmlhbCcpOwogCiAgLy8gTWFrZSBzdXJl
IHdlIGRvbid0IGV4ZWN1dGUgd2hlbiBjYW52YXMgaXNuJ3Qgc3VwcG9ydGVkCiAgaWYgKGNhbnZh
cy5nZXRDb250ZXh0KXsKIAogICAgLy8gdXNlIGdldENvbnRleHQgdG8gdXNlIHRoZSBjYW52YXMg
Zm9yIGRyYXdpbmcKICAgIHZhciBjdHggPSBjYW52YXMuZ2V0Q29udGV4dCgnMmQnKTsKIAogICAg
Ly8gRHJhdyBzaGFwZXMKICAgIGN0eC5iZWdpblBhdGgoKTsKICAgIGN0eC5saW5lV2lkdGggPSA4
OwogICAgY3R4LnN0cm9rZVN0eWxlID0gIiMzM0NDQ0MiOwogICAgY3R4LmFyYygzNDIsIDIxMiwg
NTYuMjU3MTQyODU3MTQyODYsIDYuOTk3MTgzNjM3NTQwOTAyLCA3LjU2ODM4MjMwMTgyOTk1NDUs
IGZhbHNlKTsKICAgIGN0eC5zdHJva2UoKTsKICAgIGN0eC5jbG9zZVBhdGgoKTsKCiAgICBjdHgu
YmVnaW5QYXRoKCk7CiAgICBjdHgubGluZVdpZHRoID0gNTsKICAgIGN0eC5zdHJva2VTdHlsZSA9
ICIjMTFGQT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