Closed
Bug 582004
Opened 14 years ago
Closed 14 years ago
Make aDirtyRect a const argument, in imgIContainerObserver::frameChanged()
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
Tracking | Status | |
---|---|---|
blocking2.0 | --- | beta5+ |
People
(Reporter: dholbert, Assigned: dholbert)
References
Details
Attachments
(2 files)
(deleted),
patch
|
joe
:
review+
vlad
:
superreview+
joe
:
approval2.0+
|
Details | Diff | Splinter Review |
(deleted),
patch
|
joe
:
review+
|
Details | Diff | Splinter Review |
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.
Assignee | ||
Comment 1•14 years ago
|
||
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)
Assignee | ||
Updated•14 years ago
|
Updated•14 years ago
|
Attachment #460287 -
Flags: review?(joe) → review+
Assignee | ||
Updated•14 years ago
|
Attachment #460287 -
Flags: approval2.0?
Comment 2•14 years ago
|
||
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+
Assignee | ||
Comment 3•14 years ago
|
||
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?
Assignee | ||
Updated•14 years ago
|
Attachment #462465 -
Flags: review? → review?(joe)
Assignee | ||
Updated•14 years ago
|
Attachment #462465 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #462465 -
Flags: approval2.0?
Updated•14 years ago
|
Attachment #462465 -
Flags: review?(joe) → review+
Assignee | ||
Comment 5•14 years ago
|
||
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)
Assignee | ||
Comment 6•14 years ago
|
||
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+
Assignee | ||
Comment 7•14 years ago
|
||
Landed:
http://hg.mozilla.org/mozilla-central/rev/56c85516f8c2
http://hg.mozilla.org/mozilla-central/rev/3f389a6d5a6b
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.
Description
•