[Webkit-unassigned] [Bug 44083] SVGLocatable.getScreenCTM ignores scrolling
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Aug 24 23:42:55 PDT 2010
https://bugs.webkit.org/show_bug.cgi?id=44083
--- Comment #5 from Mike Bostock <mbostock at cs.stanford.edu> 2010-08-24 23:42:55 PST ---
(In reply to comment #4)
> Notice how it stops at the first non-SVG element.
That's true for mode == NearestViewportScope (getCTM), but not mode == ScreenScope (getScreenCTM), where stopAtElement is 0 and it goes all the way to the root element.
I think what's needed is something like this at the end of computeCTM:
if (mode == ScreenScope) {
DOMWindow* window = element->ownerDocument()->defaultView();
ctm = ctm.translate(window->scrollX(), window->scrollY());
}
return ctm;
Although I haven't thought through whether it should be translate or translateRight, yet. Or maybe -scrollX and -scrollY.
--
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