Closed Bug 114255 Opened 24 years ago Closed 24 years ago

nsRenderingContextGTK::CreateDrawingSurface doesn't always call UpdateGC

Categories

(SeaMonkey :: General, defect)

x86
Linux
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: bbaetz, Assigned: bbaetz)

Details

Attachments

(1 file)

nsRenderingContextGTK::CreateDrawingSurface has: if (!mGC) UpdateGC(); The problem with this is that if we change the clip region, then create a drawing surface (using mGC as the GC), this new X pixmap will have the old clip region associated with it. Since clip regions are inherited, and you have to explicitly reset them to (0,0,width,height) when drawing to an nsIDrawingSurface (which is apparently not a bug), this causes problems if the drawing surface's origin is not (0,0) That if statement has been in there since the original GCCache stuff went in almost two years ago, and Stuart can't remember why. patch coming up.
Attached patch patchSplinter Review
Comment on attachment 60971 [details] [diff] [review] patch r=pavlov
Attachment #60971 - Flags: review+
Comment on attachment 60971 [details] [diff] [review] patch sr=jst
Attachment #60971 - Flags: superreview+
Checked in.
Status: NEW → RESOLVED
Closed: 24 years ago
Resolution: --- → FIXED
Filed bug 114334 to port the patch to the Xlib gfx land ...
Product: Browser → Seamonkey
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: