<?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>23243</bug_id>
          
          <creation_ts>2009-01-11 13:04:26 -0800</creation_ts>
          <short_desc>Need to add multLeft() to TransformationMatrix and WebKitCSSMatrix</short_desc>
          <delta_ts>2010-09-20 20:58:01 -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>Mac</rep_platform>
          <op_sys>OS X 10.5</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="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Chris Marrin">cmarrin</assigned_to>
          <cc>dino</cc>
    
    <cc>jeffschiller</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>105257</commentid>
    <comment_count>0</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-01-11 13:04:26 -0800</bug_when>
    <thetext>TransformationMatrix::multiply() does a multRight with the supplied matrix. The other operations, like scale(), are applied to the left (as expected).

I think TransformationMatrix needs explicit multLeft and multRight (or pre- and post-multiply).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105606</commentid>
    <comment_count>1</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2009-01-13 16:48:45 -0800</bug_when>
    <thetext>I don&apos;t think it&apos;s really necessary to have both variants. This is usually provided as an optimization, since the operation is self-modifying. Today, if you wanted to multiply b * a, but put the result in a, you would have to:

    TransformationMatrix tmp = b;
    a = tmp.multiply(a);

Which isn&apos;t that bad. Alternatively, we could change to a non-destructive multiply, which would ALWAYS be more inefficient, rather than just when you need to flip the operation order. I don&apos;t think our use of TransformationMatrix is extensive enough to warrant this.
</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>105625</commentid>
    <comment_count>2</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-01-13 17:39:09 -0800</bug_when>
    <thetext>We have determined that SVGMatrix&apos;s multiply() is a multRight(), which also does not match its scale() etc, and indeed we think that TransformationMatrix should be more explicit about left vs. right multiply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106089</commentid>
    <comment_count>3</comment_count>
    <who name="Chris Marrin">cmarrin</who>
    <bug_when>2009-01-16 10:56:55 -0800</bug_when>
    <thetext>Now multiply() does a multRight() in TransformationMatrix, CSSMatrix and SVGMatrix. I think we should leave it that way for compatibility and add a multLeft() function (at least to TransformationMatrix and CSSMatrix).

</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160439</commentid>
    <comment_count>4</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2009-11-04 08:02:31 -0800</bug_when>
    <thetext>I&apos;m ready and willing to hack - does anyone care to mentor me through this and Bug 16062?  Is there a good IRC channel to ask questions?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160441</commentid>
    <comment_count>5</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2009-11-04 08:05:35 -0800</bug_when>
    <thetext>Find me (smfr) on #webkit later today.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>160463</commentid>
    <comment_count>6</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2009-11-04 09:21:21 -0800</bug_when>
    <thetext>In looking at the source, TransformationMatrix now has an explicit multLeft() and a multiply(), which does a multRight.  This was done by cmarrin for Bug 6868 and landed r40761.

I will fix SVGMatrix&apos;s incorrect matrix multiplication as part of Bug 16062.

Is there anything left to do for this bug?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282065</commentid>
    <comment_count>7</comment_count>
    <who name="Jeff Schiller">jeffschiller</who>
    <bug_when>2010-09-20 20:56:23 -0700</bug_when>
    <thetext>smfr: I think this bug can be closed, do you agree?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>282066</commentid>
    <comment_count>8</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2010-09-20 20:58:01 -0700</bug_when>
    <thetext>Yes.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>