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)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla21

People

(Reporter: birtles, Assigned: longsonr)

References

()

Details

Attachments

(2 files)

Attached image Test case
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.
Attached patch patchSplinter Review
Assignee: nobody → longsonr
Attachment #706794 - Flags: review?(dholbert)
An alternative would be to move nsSMILCSSProperty::IsPropertyAnimatable into nsSVGAnimationElement and override it for nsSVGAnimateTransformElement.
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+
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.

Attachment

General

Created:
Updated:
Size: