Closed Bug 305689 Opened 20 years ago Closed 20 years ago

[FIXr]Cache event queue service in nsContentUtils

Categories

(Core :: DOM: Core & HTML, defect, P2)

defect

Tracking

()

RESOLVED FIXED
mozilla1.9alpha1

People

(Reporter: bzbarsky, Assigned: bzbarsky)

Details

Attachments

(2 files, 1 obsolete file)

This way we don't have to keep calling GetService on it and can stop caching it in presshells.
Attached patch Like so (obsolete) — Splinter Review
Attachment #193627 - Flags: superreview?(peterv)
Attachment #193627 - Flags: review?(peterv)
Priority: -- → P2
Target Milestone: --- → mozilla1.9alpha
it'd be nice if nsContentUtils.h documented which functions guarantee a non-null return and which don't...
Perhaps should simply use Foo() instead of GetFoo() for the ones that guarantee non-null?
(In reply to comment #3) > Perhaps should simply use Foo() instead of GetFoo() for the ones that guarantee > non-null? Yeah, I think we should do that.
Comment on attachment 193627 [details] [diff] [review] Like so >Index: content/base/src/nsImageLoadingContent.cpp >=================================================================== >+#include "nsIEventStateManager.h" Is this needed?
Attachment #193627 - Flags: superreview?(peterv)
Attachment #193627 - Flags: superreview+
Attachment #193627 - Flags: review?(peterv)
Attachment #193627 - Flags: review+
> Is this needed? No. It snuck in from another patch. I'll remove it and rename the method to EventQueueService() when I check in.
Attachment #193627 - Attachment is obsolete: true
Summary: [FIX]Cache event queue service in nsContentUtils → [FIXr]Cache event queue service in nsContentUtils
Fixed.
Status: NEW → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
Attached patch Fix leakSplinter Review
We should release too.
Attachment #193828 - Flags: superreview?(bzbarsky)
Attachment #193828 - Flags: review?(bzbarsky)
Comment on attachment 193828 [details] [diff] [review] Fix leak Doh... I suck.
Attachment #193828 - Flags: superreview?(bzbarsky)
Attachment #193828 - Flags: superreview+
Attachment #193828 - Flags: review?(bzbarsky)
Attachment #193828 - Flags: review+
Component: DOM → DOM: Core & HTML
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: