Bug 13789 - SVGLocatable::getScreenCTM() faulty
Summary: SVGLocatable::getScreenCTM() faulty
Alias: None
Product: WebKit
Classification: Unclassified
Component: SVG (show other bugs)
Version: 523.x (Safari 3)
Hardware: Macintosh OS X 10.4
: P2 Normal
Assignee: Nobody
Depends on:
Reported: 2007-05-20 06:39 PDT by Antoine Quint
Modified: 2007-05-21 20:34 PDT (History)
0 users

See Also:

testcase for SVGLocatable::getScreenCTM() (2.05 KB, application/xhtml+xml)
2007-05-20 06:41 PDT, Antoine Quint
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Antoine Quint 2007-05-20 06:39:00 PDT
SVGLocatable::getScreenCTM() doesn't seem to take into account transformations applied by the viewport'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' .clientX and .clientY live.
Comment 1 Antoine Quint 2007-05-20 06:41:08 PDT
Created attachment 14635 [details]
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's not.
Comment 2 Antoine Quint 2007-05-20 06:42:58 PDT
Latest Firefox trunk builds handle this test case correctly. Opera 9.2 does not, raising a bug on Opera as well.
Comment 3 Oliver Hunt 2007-05-20 21:50:51 PDT
Filed internally as <rdar://problem/5216451> 
Comment 4 Oliver Hunt 2007-05-21 20:34:35 PDT
Landed in r21636