mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-31 22:25:30 +00:00
fix for #2209 "Can't display toolbars and xpTree": always call CommonInit() in SelectDrawingSurface().
This commit is contained in:
parent
d1c2b68f8d
commit
cabf7ef087
@ -506,7 +506,7 @@ void nsRenderingContextMac::SelectDrawingSurface(nsDrawingSurfaceMac aSurface, G
|
||||
|
||||
SetQuickDrawEnvironment(gs, clipToClipRegion);
|
||||
|
||||
if (isNewGS)
|
||||
// if (isNewGS)
|
||||
CommonInit();
|
||||
}
|
||||
|
||||
@ -552,7 +552,7 @@ NS_IMETHODIMP nsRenderingContextMac::SetPortTextState()
|
||||
::TextFont(theStyle.tsFont);
|
||||
::TextSize(theStyle.tsSize);
|
||||
::TextFace(theStyle.tsFace);
|
||||
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user