[Webkit-unassigned] [Bug 44083] SVGLocatable.getScreenCTM ignores scrolling

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Wed Aug 25 00:21:20 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=44083





--- Comment #8 from Nikolas Zimmermann <zimmermann at kde.org>  2010-08-25 00:21:20 PST ---
(In reply to comment #0)
> Created an attachment (id=64541)
 --> (https://bugs.webkit.org/attachment.cgi?id=64541) [details]
> Test case.
> 
> Per SVG Tiny 1.2, Section A.8.11 SVGLocatable:
> 
> """
> getScreenCTM
> 
> Returns the transformation matrix from current user units to the initial viewport coordinate system. The clientX and clientY coordinates of a MouseEvent are in the initial viewport coordinate system. Note that null is returned if this element is not hooked into the document tree. This method would have been more aptly named as getClientCTM, but the name getScreenCTM is kept for historical reasons.
> """

First of all, we focus on SVG 1.1 2nd Edition, not SVG Tiny 1.2.
I explicitely ignored the scroll offset when implementing these functions, because what SVG 1.1 says, is:
http://www.w3.org/TR/SVG/types.html#InterfaceSVGLocatable


Returns the transformation matrix from current user units (i.e., after application of the ‘transform’ attribute, if any) to the parent user agent's notice of a "pixel". For display devices, ideally this represents a physical screen pixel. For other devices or environments where physical pixel sizes are not known, then an algorithm similar to the CSS2 definition of a "pixel" can be used instead. Note that null is returned if this element is not hooked into the document tree. This method would have been more aptly named as getClientCTM, but the name getScreenCTM is kept for historical reasons.

I was not sure about scrolling, but it seems to me that the SVG Tiny 1.2 behaviour is more clear.
So, I'll have a look to fix it.

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.


More information about the webkit-unassigned mailing list