Bug 13789

Summary: SVGLocatable::getScreenCTM() faulty
Product: WebKit Reporter: Antoine Quint <ml>
Component: SVGAssignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal    
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
Attachments:
Description Flags
testcase for SVGLocatable::getScreenCTM() none

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