Closed Bug 280554 Opened 20 years ago Closed 20 years ago

SVG content and layout frames should use GetAnimVal not GetBaseVal

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: scootermorris, Assigned: scootermorris)

Details

Attachments

(1 file, 1 obsolete file)

Currently, we get values from nsSVGAnimated* by using GetBaseVal. This will make ever doing animations very difficult. We should call GetAnimVal insted.
Attachment #173012 - Flags: review?(alex)
Comment on attachment 173012 [details] [diff] [review] Patch that switches everything to using GetAnimVal The layout changes look good. Not so sure about the content changes - do we really want the animvals here? I guess it doesn't matter. What about this one though: >Index: content/svg/content/src/nsSVGMarkerElement.cpp >=================================================================== > /* void setOrientToAngle (in nsIDOMSVGAngle angle); */ > NS_IMETHODIMP nsSVGMarkerElement::SetOrientToAngle(nsIDOMSVGAngle *angle) > { > mOrientType->SetBaseVal(SVG_MARKER_ORIENT_ANGLE); > > nsIDOMSVGAngle *a; >- mOrientAngle->GetBaseVal(&a); >+ mOrientAngle->GetAnimVal(&a); > float f; > angle->GetValue(&f); > a->SetValue(f); Shouldn't this remain GetBaseVal()?
Attachment #173012 - Attachment is obsolete: true
Attachment #173021 - Flags: review?(alex)
Attachment #173021 - Flags: review?(alex) → review+
Checked in by tor@acm.org: 2/2/2005
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attachment #173012 - Flags: review?(alex)
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: