Closed Bug 673535 Opened 13 years ago Closed 13 years ago

RasterImage::Anim::ensureAnimExists() should be cleaned up

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla8

People

(Reporter: jwir3, Assigned: jwir3)

References

Details

(Whiteboard: [inbound])

Attachments

(1 file)

RasterImage::Anim::ensureAnimExists() is a function used for validation of animation objects. It should be capitalized and modified to return void, as described in bug 666446 comment 75: > RasterImage::RequestRefresh(const mozilla::TimeStamp& aTime) > { >+ this->ensureAnimExists(); >+ if (!mAnimating || !ShouldAnimate()) { >+ return; >+ } It looks like ensureAnimExists thinks it can fail (that is, we have failure-checks for it in other places) -- however, infallible-new means it really can't fail. To avoid confusion about where/whether we need to failure-check it, perhaps we should just make ensureAnimExists() return void? (and capitalize it to follow convention? I think it's the only non-capitalized method in RasterImage.)
Assignee: nobody → sjohnson
Blocks: 666446
Component: Layout: Images → ImageLib
QA Contact: layout.images → imagelib
Refactoring that fixes this bug.
Attachment #547960 - Flags: review?(dholbert)
Status: NEW → ASSIGNED
Comment on attachment 547960 [details] [diff] [review] Patch 0 - Refactoring that fixes this bug Looks fine to me! joe should sign off on this -- flagging him for addl. review.
Attachment #547960 - Flags: review?(joe)
Attachment #547960 - Flags: review?(dholbert)
Attachment #547960 - Flags: review+
Comment on attachment 547960 [details] [diff] [review] Patch 0 - Refactoring that fixes this bug Review of attachment 547960 [details] [diff] [review]: -----------------------------------------------------------------
Attachment #547960 - Flags: review?(joe) → review+
Comment on attachment 547960 [details] [diff] [review] Patch 0 - Refactoring that fixes this bug Requesting this be landed. Here's a link to the try server results: http://tbpl.mozilla.org/?tree=Try&rev=630e13ab9ea4 Please note that the tests that failed were intermittent failures, and were re-run with all but 1 successful. The build that failed was apparently also an intermittent failure, as I re-ran it and it built fine.
Attachment #547960 - Flags: checkin?(joe)
Attachment #547960 - Flags: checkin?(joe) → checkin+
Status: ASSIGNED → RESOLVED
Closed: 13 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: