Closed
Bug 1098202
Opened 10 years ago
Closed 10 years ago
Rename imgINotificationObserver handlers and flags to be consistent with the notifications they handle
Categories
(Core :: Graphics: ImageLib, defect)
Core
Graphics: ImageLib
Tracking
()
RESOLVED
FIXED
mozilla36
People
(Reporter: seth, Assigned: seth)
References
(Blocks 1 open bug)
Details
Attachments
(3 files)
36.55 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
16.74 KB,
patch
|
tnikkel
:
review+
|
Details | Diff | Splinter Review |
37.55 KB,
patch
|
Details | Diff | Splinter Review |
Because notification names and roles have changed over time, the names of imgINotificationObserver handlers often do not match the notifications they handle. Making the naming consistent will make the code easier to understand and less error-prone to maintain.
Assignee | ||
Updated•10 years ago
|
Summary: Rename imgINotificationObserver handlers to be consistent with the notifications they handle → Rename imgINotificationObserver handlers and flags to be consistent with the notifications they handle
Assignee | ||
Comment 1•10 years ago
|
||
Here we go; this patch renames the imgINotificationObserver handlers used in various places in our codebase so that their name is consistent with the notification they handle. It's a pretty large patch, unfortunately, though there's nothing complex going on.
Attachment #8522613 -
Flags: review?(tnikkel)
Assignee | ||
Comment 2•10 years ago
|
||
Here's a second patch that renames the Progress flags to be consistent with the corresponding notifications. This also has the effect of making them more consistent with the imgIRequest STATUS_* flags they correspond to, so everything gets tied together nicely.
Attachment #8522614 -
Flags: review?(tnikkel)
Assignee | ||
Comment 3•10 years ago
|
||
Here's a build-only try job on all platforms to make sure nothing went wrong:
https://tbpl.mozilla.org/?tree=Try&rev=6dc2c35eca05
Updated•10 years ago
|
Attachment #8522613 -
Flags: review?(tnikkel) → review+
Updated•10 years ago
|
Attachment #8522614 -
Flags: review?(tnikkel) → review+
Assignee | ||
Comment 4•10 years ago
|
||
Thanks for the review!
Assignee | ||
Comment 5•10 years ago
|
||
So bug 858919 busted this. I believe it's fixed now; here's a try job to confirm:
https://tbpl.mozilla.org/?tree=Try&rev=74cdb13fb03b
Assignee | ||
Comment 6•10 years ago
|
||
Here's the updated version of part 1 that should fix the build.
Assignee | ||
Comment 7•10 years ago
|
||
Looks like try is green. Pushed:
https://hg.mozilla.org/integration/mozilla-inbound/rev/3b2b5f73f8ca
https://hg.mozilla.org/integration/mozilla-inbound/rev/f15de87ae342
Comment 8•10 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/3b2b5f73f8ca
https://hg.mozilla.org/mozilla-central/rev/f15de87ae342
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla36
You need to log in
before you can comment on or make changes to this bug.
Description
•