Closed Bug 370034 Opened 18 years ago Closed 18 years ago

Replace nsIDeviceContext::GetDeviceContextFor with nsIDeviceContext::Init

Categories

(Core :: Graphics, defect)

x86
Windows XP
defect
Not set
normal

Tracking

()

RESOLVED FIXED

People

(Reporter: sharparrow1, Assigned: sharparrow1)

Details

Attachments

(2 files)

GetDeviceContextFor doesn't care about the device it is currently getting called on. Therefore, instead of having to call nsIDeviceContext::GetDeviceContextFor on an existing device context to get a print device context, you should just be able to do_CreateInstance and call Init with an nsIDeviceContextSpec. I'll make a patch once I've checked in Bug 369834.
Attached patch PatchSplinter Review
This has a few changes mixed in from Bug 369698; I'll separate them out to check in. The point of this is to remove the dependency on having a screen device context to print.
Attachment #255082 - Flags: review?(roc)
Comment on attachment 255082 [details] [diff] [review] Patch + nsCOMPtr<nsIDeviceContext> devctx; Move this down to where it's assigned. It would be better if you could separate the patches out for review, just to make the record clear. You'll want to separate them later for checkin anyway...
Attachment #255082 - Flags: superreview+
Attachment #255082 - Flags: review?(roc)
Attachment #255082 - Flags: review+
Checked in.
Status: NEW → RESOLVED
Closed: 18 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: