<?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>13789</bug_id>
          
          <creation_ts>2007-05-20 06:39:00 -0700</creation_ts>
          <short_desc>SVGLocatable::getScreenCTM() faulty</short_desc>
          <delta_ts>2007-05-21 20:34:54 -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>SVG</component>
          <version>523.x (Safari 3)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.4</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="Antoine Quint">ml</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>9575</commentid>
    <comment_count>0</comment_count>
    <who name="Antoine Quint">ml</who>
    <bug_when>2007-05-20 06:39:00 -0700</bug_when>
    <thetext>SVGLocatable::getScreenCTM() doesn&apos;t seem to take into account transformations applied by the viewport&apos;s preserveAspectRatio and viewBox attributes, nor does it take into account the CSS offset of the container XHTML element, if available.

SVGLocatable::getScreenCTM() should return the computed transformation matrix applied to the element provided as a parameter up to the client coordinate system, ie. the one in which mouse events&apos; .clientX and .clientY live.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9576</commentid>
    <comment_count>1</comment_count>
      <attachid>14635</attachid>
    <who name="Antoine Quint">ml</who>
    <bug_when>2007-05-20 06:41:08 -0700</bug_when>
    <thetext>Created attachment 14635
testcase for SVGLocatable::getScreenCTM()

This test case shows a green rectangle if the test is performed correctly, or an error message detailing the issue in case it&apos;s not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9577</commentid>
    <comment_count>2</comment_count>
    <who name="Antoine Quint">ml</who>
    <bug_when>2007-05-20 06:42:58 -0700</bug_when>
    <thetext>Latest Firefox trunk builds handle this test case correctly. Opera 9.2 does not, raising a bug on Opera as well.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9536</commentid>
    <comment_count>3</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-05-20 21:50:51 -0700</bug_when>
    <thetext>Filed internally as &lt;rdar://problem/5216451&gt; </thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>9490</commentid>
    <comment_count>4</comment_count>
    <who name="Oliver Hunt">oliver</who>
    <bug_when>2007-05-21 20:34:35 -0700</bug_when>
    <thetext>Landed in r21636</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>14635</attachid>
            <date>2007-05-20 06:41:08 -0700</date>
            <delta_ts>2007-05-20 06:41:08 -0700</delta_ts>
            <desc>testcase for SVGLocatable::getScreenCTM()</desc>
            <filename>getScreenCTM.svg</filename>
            <type>application/xhtml+xml</type>
            <size>2095</size>
            <attacher name="Antoine Quint">ml</attacher>
            
              <data encoding="base64">PGh0bWwgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzE5OTkveGh0bWwiPgoKICA8aGVhZD4KICAg
IDx0aXRsZT5TY2FsYWJsZSBTZWFyY2ggQm94PC90aXRsZT4KICAgIAogICAgPHNjcmlwdD4KICAg
ICAgPCFbQ0RBVEFbCgogICAgICB2YXIgdGVzdE1hdHJpeDsKICAgICAgdmFyIGV4cGVjdGVkTWF0
cml4ID0gewogICAgICAgIGE6IDIsCiAgICAgICAgYjogMCwKICAgICAgICBjOiAwLAogICAgICAg
I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lvPSJ4TWluWU1p
biBtZWV0Ij4KICAgICAgICA8cmVjdCBpZD0icmVjdCIgd2lkdGg9IjEwMCUiIGhlaWdodD0iMTAw
JSIgZmlsbD0icmVkIiAvPgogICAgICA8L3N2Zz4KICAgIDwvZGl2PgogICAgCiAgICA8ZGl2IGlk
PSJlcnJvciIgc3R5bGU9InBvc2l0aW9uOiBhYnNvbHV0ZTsgbGVmdDogMzBweDsgdG9wOiAzMzBw
eDsgY29sb3I6IHJlZCIgLz4KICAgIAogIDwvYm9keT4KICAKPC9odG1sPg==
</data>

          </attachment>
      

    </bug>

</bugzilla>