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)
Core
SVG
Tracking
()
RESOLVED
FIXED
People
(Reporter: scootermorris, Assigned: scootermorris)
Details
Attachments
(1 file, 1 obsolete file)
|
45.58 KB,
patch
|
alex
:
review+
|
Details | Diff | Splinter Review |
Currently, we get values from nsSVGAnimated* by using GetBaseVal. This will
make ever doing animations very difficult. We should call GetAnimVal insted.
| Assignee | ||
Comment 1•20 years ago
|
||
Attachment #173012 -
Flags: review?(alex)
Comment 2•20 years ago
|
||
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()?
| Assignee | ||
Comment 3•20 years ago
|
||
Attachment #173012 -
Attachment is obsolete: true
Attachment #173021 -
Flags: review?(alex)
Updated•20 years ago
|
Attachment #173021 -
Flags: review?(alex) → review+
| Assignee | ||
Comment 4•20 years ago
|
||
Checked in by tor@acm.org: 2/2/2005
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
| Assignee | ||
Updated•20 years ago
|
Attachment #173012 -
Flags: review?(alex)
You need to log in
before you can comment on or make changes to this bug.
Description
•