Closed Bug 104311 Opened 23 years ago Closed 23 years ago

Imagelib uses too much XPCOM

Categories

(Core :: Graphics: ImageLib, defect, P2)

x86
All
defect

Tracking

()

VERIFIED FIXED
mozilla0.9.6

People

(Reporter: pavlov, Assigned: pavlov)

Details

Attachments

(2 files)

Imagelib uses too much XPCOM/virtual functions internally.  We can remove most 
of the internal functions and leave the XPCOM stuff only on the outside.
This patch removes the virtual function call use between the imgRequest and 
imgRequestProxy classes.

I create a imgILoad interface that is only used by decoders to set/get the 
image that they are responsible for creating.

With this patch, I make imgRequest no longer inherit from imgIRequest. I should 
rename imgRequest.[cpp/h] to imgLoad.[cpp/h], but I'll do that in another step 
as I would prefer to not lose version history. I will see if leaf can help out 
with this.  I could probably also rename imgRequestProxy to imgRequest..  i'll 
rename files later.
Status: NEW → ASSIGNED
Keywords: patch
Priority: -- → P2
Target Milestone: --- → mozilla0.9.6
Comment on attachment 53202 [details] [diff] [review]
Patch to remove the internal virtual function crap

r=bryner, with the corrections we talked about on irc
Attachment #53202 - Flags: review+
Comment on attachment 53202 [details] [diff] [review]
Patch to remove the internal virtual function crap

sr=sspitzer

stuart tells me he tested a whole bunch, including mailnews.
Attachment #53202 - Flags: superreview+
fix checked in.
Status: ASSIGNED → RESOLVED
Closed: 23 years ago
Resolution: --- → FIXED
sr=hyatt on 2nd patch
Attachment #53232 - Flags: superreview+
Comment on attachment 53232 [details] [diff] [review]
Remove the unused 'cx' param

r=bryner
Attachment #53232 - Flags: review+
Comment on attachment 53232 [details] [diff] [review]
Remove the unused 'cx' param

r=jag
2nd patch checked in
Verified fix checked into lxr.mozilla.org
Status: RESOLVED → VERIFIED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: