Closed Bug 1316338 Opened 8 years ago Closed 8 years ago

Make PrintTargetThebes set mHasActivePage as appropriate

Categories

(Core :: Graphics, defect)

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla52
Tracking Status
firefox52 --- fixed

People

(Reporter: jwatt, Assigned: jwatt)

References

Details

Attachments

(1 file)

PrintTargetThebes doesn't call through to the base class methods in most cases since it wraps a gfxSurface rather than a cairo_surface_t. PrintTargetThebes needs to set mHasActivePage as appropriate to avoid triggering assertions.
Blocks: 1280324
Attached patch patchSplinter Review
Attachment #8809047 - Flags: review?(lsalzman)
Pushed by jwatt@jwatt.org:
https://hg.mozilla.org/integration/mozilla-inbound/rev/ef7bd28df4ec
Make PrintTargetThebes set mHasActivePage as appropriate. r=lsalzman
Comment on attachment 8809047 [details] [diff] [review]
patch

This is okay, but it might be cleaner to just call the methods on the superclass that already do that for you instead? i.e. PrintTarget::BeginPage(); and PrintTarget::EndPage()?
Attachment #8809047 - Flags: review?(lsalzman) → review+
Oops. Got a little over eager and failed to remove this from the bunch of patches I just batched up and landed. Sorry about that. However, this class will be going away soon, so I won't make the minor change you suggest unless you insist.
https://hg.mozilla.org/mozilla-central/rev/ef7bd28df4ec
Status: NEW → RESOLVED
Closed: 8 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla52
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: