<?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>13669</bug_id>
          
          <creation_ts>2007-05-10 16:30:47 -0700</creation_ts>
          <short_desc>Canvas transformations affect path construction</short_desc>
          <delta_ts>2008-01-28 17:52:16 -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>Layout and Rendering</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>OS X 10.4</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>INVALID</resolution>
          
          
          <bug_file_loc>http://www.hixie.ch/tests/adhoc/html/canvas/032.html</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="Ian &apos;Hixie&apos; Hickson">ian</reporter>
          <assigned_to name="Oliver Hunt">oliver</assigned_to>
          <cc>darin</cc>
    
    <cc>gavin.sharp</cc>
    
    <cc>ggaren</cc>
    
    <cc>hyatt</cc>
    
    <cc>ian</cc>
    
    <cc>oliver</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>10370</commentid>
    <comment_count>0</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-05-10 16:30:47 -0700</bug_when>
    <thetext>STEPS TO REPRODUCE
 1. Create a path.
 2. Set a transformation.
 3. Fill the path.

ACTUAL RESULTS
 Transformation is ignored.

EXPECTED RESULTS
 Transformation should have an affect.


STEPS TO REPRODUCE
 1. Set a transformation.
 2. Create a path.
 3. Undo the transformation.
 4. Fill the path.

ACTUAL RESULTS
 Transformation is applied.

EXPECTED RESULTS
 Transformation should have no affect.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10374</commentid>
    <comment_count>1</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-05-10 16:54:20 -0700</bug_when>
    <thetext>TESTCASES
   http://www.hixie.ch/tests/adhoc/html/canvas/007.html
   http://www.hixie.ch/tests/adhoc/html/canvas/008.html
   http://www.hixie.ch/tests/adhoc/html/canvas/020.html
   http://www.hixie.ch/tests/adhoc/html/canvas/032.html

(Some of these may also expose other bugs.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10275</commentid>
    <comment_count>2</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-05-11 14:20:21 -0700</bug_when>
    <thetext>As mentioned on IRC, it would be really great to have this fixed soon so that we can determine whether this is possible to fix or not. If it&apos;s not possible to fix then we should change the spec, but that would make the platform quite sucky so I&apos;d like to avoid doing that if at all possible. (You&apos;d have to redraw the path everytime you wanted to paint it somewhere new, instead of being able to create the path once and rapidly paint it in multiple places.)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>10277</commentid>
    <comment_count>3</comment_count>
      <attachid>14497</attachid>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-05-11 14:49:29 -0700</bug_when>
    <thetext>Created attachment 14497
Patch that fixes problem

Okay, this fixes behaviour to match spec -- still need to confirm that this doesn&apos;t destroy dashboard</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>57551</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2007-10-01 09:49:35 -0700</bug_when>
    <thetext>Hum.  This looks like a really easy fix.  The only problem is that it sounds like there needs to be some check of dashboard widgets with this patch applied.  That&apos;s probably best done by some apple person (with access to leopard)... and probably that will only happen post-leopard (possibly compounding the problem).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>59808</commentid>
    <comment_count>5</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2007-10-29 13:27:23 -0700</bug_when>
    <thetext>So this didn&apos;t make Safari 3... can we get a post-mortem? Was it too incompatible, requiring this to become WONTFIX? Or is it still something we can do?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68403</commentid>
    <comment_count>6</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-01-27 19:25:17 -0800</bug_when>
    <thetext>For canvas.isPointInPath to be implemented completely and according to spec we need to land this patch.  Although i hate to suggest it, should we consider having a dashboard compatibility quirk for this?

I don&apos;t think we ever confirmed whether or not this would break dashboard.  It should be noted however that firefox has this same behaviour.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68405</commentid>
    <comment_count>7</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-01-27 19:31:39 -0800</bug_when>
    <thetext>Oooh, it occurs to me, could we make this dependent on being in html5 &quot;strict&quot;? eg. switch on the presence of the html5 doctype? (this type of compat quirk is new to me so i don&apos;t know how it works/if it&apos;s possible... i&apos;m hoping hyatt would know :D )

Thoughts anyone?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68512</commentid>
    <comment_count>8</comment_count>
    <who name="Ian &apos;Hixie&apos; Hickson">ian</who>
    <bug_when>2008-01-28 17:45:12 -0800</bug_when>
    <thetext>The spec changed recently, since Firefox and Safari refused to change to this behaviour, and the Opera guys requested that the spec change to match them. Thus I believe this bug is now invalid.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>68514</commentid>
    <comment_count>9</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2008-01-28 17:52:16 -0800</bug_when>
    <thetext>IT&apos;s a shame as feel the old specced behaviour was better in a number of ways -- ithnk we should really consider adding a Path object to HTML5</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>14497</attachid>
            <date>2007-05-11 14:49:29 -0700</date>
            <delta_ts>2007-05-11 14:49:29 -0700</delta_ts>
            <desc>Patch that fixes problem</desc>
            <filename>canvas_correction.patch</filename>
            <type>text/plain</type>
            <size>1038</size>
            <attacher name="Oliver Hunt">oliver</attacher>
            
              <data encoding="base64">SW5kZXg6IFdlYkNvcmUvaHRtbC9DYW52YXNSZW5kZXJpbmdDb250ZXh0MkQuY3BwCj09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT0KLS0tIFdlYkNvcmUvaHRtbC9DYW52YXNSZW5kZXJpbmdDb250ZXh0MkQuY3BwCShyZXZpc2lv
biAyMTQxNCkKKysrIFdlYkNvcmUvaHRtbC9DYW52YXNSZW5kZXJpbmdDb250ZXh0MkQuY3BwCSh3
b3JraW5nIGNvcHkpCkBAIC0yODEsNyArMjgxLDYgQEAgdm9pZCBDYW52YXNSZW5kZXJpbmdDb250
ZXh0MkQ6OnNjYWxlKGZsbwogICAgIGlmICghYykKICAgICAgICAgcmV0dXJuOwogICAgIGMtPnNj
YWxlKEZsb2F0U2l6ZShzeCwgc3kpKTsKLSAgICBzdGF0ZSgpLm1fcGF0aC50cmFuc2Zvcm0oQWZm
aW5lVHJhbnNmb3JtKCkuc2NhbGUoMS4wL3N4LCAxLjAvc3kpKTsKIH0KIAogdm9pZCBDYW52YXNS
ZW5kZXJpbmdDb250ZXh0MkQ6OnJvdGF0ZShmbG9hdCBhbmdsZUluUmFkaWFucykKQEAgLTI5MCw3
ICsyODksNiBAQCB2b2lkIENhbnZhc1JlbmRlcmluZ0NvbnRleHQyRDo6cm90YXRlKGZsCiAgICAg
aWYgKCFjKQogICAgICAgICByZXR1cm47CiAgICAgYy0+cm90YXRlKGFuZ2xlSW5SYWRpYW5zKTsK
LSAgICBzdGF0ZSgpLm1fcGF0aC50cmFuc2Zvcm0oQWZmaW5lVHJhbnNmb3JtKCkucm90YXRlKC1h
bmdsZU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