Closed Bug 582004 Opened 14 years ago Closed 14 years ago

Make aDirtyRect a const argument, in imgIContainerObserver::frameChanged()

Categories

(Core :: Graphics: ImageLib, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
Tracking Status
blocking2.0 --- beta5+

People

(Reporter: dholbert, Assigned: dholbert)

References

Details

Attachments

(2 files)

The method imgIContainerObserver::frameChanged takes an argument 'aDirtyRect' to tell the observer the region that has changed. This argument isn't const right now, but it should be -- there's no reason the observer should want to modify the dirty-rect. Filing this bug on making this API change.
Attached patch fix v1 (deleted) — Splinter Review
Here's the patch. Changes the API & the (many) implementations. For consistency, this patch also makes the change s/dirtyRect/aDirtyRect/ and s/container/aContainer/ in these implementations's function-signatures.
Attachment #460287 - Flags: review?(joe)
Blocks: 276431
OS: Linux → All
Hardware: x86_64 → All
Attachment #460287 - Flags: review?(joe) → review+
Attachment #460287 - Flags: approval2.0?
Comment on attachment 460287 [details] [diff] [review] fix v1 I feel a little dirty approving something I reviewed, but I'll get over it.
Attachment #460287 - Flags: approval2.0? → approval2.0+
Some frameChanged implementations now call imgStatusTracker's frameChanged-notification methods now. (in particular, imgRequest::FrameChanged makes a call to imgStatusTracker::SendFrameChanged) So, these imgStatusTracker methods needs their aDirtyRect argument to be const as well. This followup fixes that.
Attachment #462465 - Flags: review?
Attachment #462465 - Flags: review? → review?(joe)
Attachment #462465 - Flags: approval2.0?
Attachment #462465 - Flags: approval2.0?
Attachment #462465 - Flags: review?(joe) → review+
This blocks a blocker, so it blocks too.
blocking2.0: --- → beta5+
Comment on attachment 460287 [details] [diff] [review] fix v1 bholley pointed out that this technically requires SR since it's an interface change (even though it's just a trivial "add const to an argument") vlad, mind sr'ing? (note that bug 584841 stacks on top of this bug's patches)
Attachment #460287 - Flags: superreview?(vladimir)
Blocks: 584841
Also: Don't worry if this requires a UUID rev (not sure if the 'const' addition to an argument would require that) -- I'll be landing it together with bug 584841, which already rev's the imgIContainer.idl UUID.
Attachment #460287 - Flags: superreview?(vladimir) → superreview+
Status: ASSIGNED → RESOLVED
Closed: 14 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: