Closed
Bug 738551
Opened 13 years ago
Closed 13 years ago
SVG SMIL: Don't animate transform attribute with set, animate etc.
Categories
(Core :: SVG, defect)
Core
SVG
Tracking
()
RESOLVED
FIXED
mozilla21
People
(Reporter: birtles, Assigned: longsonr)
References
()
Details
Attachments
(2 files)
|
588 bytes,
image/svg+xml
|
Details | |
|
6.05 KB,
patch
|
dholbert
:
review+
|
Details | Diff | Splinter Review |
According to http://www.w3.org/TR/SVG11/animate.html#AnimationAttributesAndProperties, <transform-list> is only animatable with <animateTransform>. However, according to the test case in the URL, we allow targetting it with <set>. It appears we just assume the type of the transform is "translate".
I note in nsSVGElement::GetAnimatedAttr we return the transform attribute (wrapped up as a nsISMILAttr) indiscriminately of what kind of animation element is requesting it.
| Assignee | ||
Comment 1•13 years ago
|
||
Assignee: nobody → longsonr
Attachment #706794 -
Flags: review?(dholbert)
| Assignee | ||
Comment 2•13 years ago
|
||
An alternative would be to move nsSMILCSSProperty::IsPropertyAnimatable into nsSVGAnimationElement and override it for nsSVGAnimateTransformElement.
Comment 3•13 years ago
|
||
Comment on attachment 706794 [details] [diff] [review]
patch
I like your proposed fix better than your proposed alternative-fix. (Bringing IsPropertyAnimatable into the mix would confuse things, IIUC, because it's supposed to be css-property-specific.)
Attachment #706794 -
Flags: review?(dholbert) → review+
| Assignee | ||
Comment 4•13 years ago
|
||
| Assignee | ||
Comment 5•13 years ago
|
||
Flags: in-testsuite+
Comment 6•13 years ago
|
||
Status: NEW → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla21
You need to log in
before you can comment on or make changes to this bug.
Description
•