Closed Bug 653270 Opened 13 years ago Closed 13 years ago

simplify nsSMILAnimationController construction

Categories

(Core :: SVG, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla6
Tracking Status
firefox5 --- fixed
firefox6 --- fixed

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(1 file)

While looking at another bug, I noticed that nsSMILAnimationController construction/initialization is much more COM-ish and messy than it needs to be. 

Filing this bug on cleaning that up.
Attached patch fixSplinter Review
Here's the fix.

Basically, NS_NewSMILAnimationController() is only ever called once, and it calls both the nsSMILAnimationController constructor and Init().  (and it's the only client of those)

So I'm merging all of the above into the nsSMILAnimationController constructor.
Attachment #528725 - Flags: review?(birtles)
Attachment #528725 - Flags: review?(birtles) → review+
Landed: http://hg.mozilla.org/mozilla-central/rev/fc0d870dadf5
Flags: in-testsuite-
Target Milestone: --- → mozilla6
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Blocks: 653238
Comment on attachment 528725 [details] [diff] [review]
fix

This needs to land on aurora in order for Bug 653238 and Bug 654015 to land.  

Very low-risk -- this just merges a few constructor-ish functions together for simplicity, with no functional change.  (See summary in comment 1.)

Requesting approval for both aurora and beta so this can land with Bug 653238 and Bug 654015.
Attachment #528725 - Flags: approval-mozilla-beta?
Attachment #528725 - Flags: approval-mozilla-aurora?
(In reply to comment #3)
> This needs to land on aurora in order for Bug 653238 and Bug 654015 to land.
(s/aurora/aurora and beta/)
Attachment #528725 - Flags: approval-mozilla-beta?
Attachment #528725 - Flags: approval-mozilla-beta+
Attachment #528725 - Flags: approval-mozilla-aurora?
Attachment #528725 - Flags: approval-mozilla-aurora+
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: