Closed
Bug 673535
Opened 14 years ago
Closed 14 years ago
RasterImage::Anim::ensureAnimExists() should be cleaned up
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
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 | ||
Updated•14 years ago
|
Assignee: nobody → sjohnson
Updated•14 years ago
|
Component: Layout: Images → ImageLib
QA Contact: layout.images → imagelib
Assignee | ||
Comment 1•14 years ago
|
||
Refactoring that fixes this bug.
Attachment #547960 -
Flags: review?(dholbert)
Assignee | ||
Updated•14 years ago
|
Status: NEW → ASSIGNED
Comment 2•14 years ago
|
||
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 3•14 years ago
|
||
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+
Assignee | ||
Comment 4•14 years ago
|
||
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)
Comment 5•14 years ago
|
||
Whiteboard: [inbound]
Updated•14 years ago
|
Attachment #547960 -
Flags: checkin?(joe) → checkin+
Comment 6•14 years ago
|
||
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla8
You need to log in
before you can comment on or make changes to this bug.
Description
•