[Webkit-unassigned] [Bug 51795] @transform not updated after changes are made to SVGTransformList

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Sun Jan 2 13:39:28 PST 2011


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





--- Comment #3 from Andrew VanderVeen <avanderveen at gmail.com>  2011-01-02 13:39:28 PST ---
Hmm, my example seems to use SVGAnimatedTransformList.

The code where I originally ran into the problem yesterday is here: https://github.com/avanderveen/jSVG

just download that and fire up i.html, try scrolling in the svg and nothing happens. There will be SVGAnimatedTransformLists logged to the console each time you scroll, but the 'g' element's transform property does not update.

Here's the code (lines 26-30 in jsvg.js) where it fails:
...
transMatrix = svgG.getCTM().multiply(transMatrix);
var mtxStr = "matrix(" + transMatrix.a + "," + transMatrix.b + "," + transMatrix.c + "," + transMatrix.d + "," + transMatrix.e + "," + transMatrix.f + ")";
svgG.setAttribute("transform",  mtxStr); // doesn't work in WebKit
console.log($(svgG).attr("transform"));
...

You'll see the SVGAnimatedTransformList logged in the console, but the update isn't reflected.

I'm running Chromium 8.0.552.224 .. not sure which v. of WebKit that is, but it's up-to-date.

I hope it's not just me doing something wrong here... if it is, my bad for reporting it as a bug.

-- 
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