Closed Bug 210443 Opened 22 years ago Closed 22 years ago

nsImageLoadingContent shouldn't malloc as much...

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: jst, Assigned: jst)

Details

Attachments

(1 file)

When nsImageLoadingContent started using dummly requests to ensure proper delivery of onload events in documents with images, one more malloc per image was introduced. This can be eliminated with some not-too-clean nsDummyLayoutRequest usage, patch coming up, and while this ain't the cleanest thing to do, I think it's worth doing until we have a better way...
Comment on attachment 126330 [details] [diff] [review] Make ImageEvent inherit nsDummyLayoutRequest :-) Try not to puke :-)
Attachment #126330 - Flags: superreview?(bzbarsky)
Attachment #126330 - Flags: review?(caillon)
Comment on attachment 126330 [details] [diff] [review] Make ImageEvent inherit nsDummyLayoutRequest :-) sr=me assuming you change "itsefl" to "itself". Truth to tell, I was considering doing something like this with load events in general, at some point in the remote past.... ;)
Attachment #126330 - Flags: superreview?(bzbarsky) → superreview+
Comment on attachment 126330 [details] [diff] [review] Make ImageEvent inherit nsDummyLayoutRequest :-) >+ // The event will own itsefl while it's in the event Q, once What bz said, and also spell out queue. Or use |eventQ| (no spaces) to match the variable name. puke=caillon
Attachment #126330 - Flags: review?(caillon) → review+
FIXED.
Status: NEW → RESOLVED
Closed: 22 years ago
Resolution: --- → FIXED
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: