mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 734381 - Don't clear the background behind menuitems when painting into a context without transparency. r=josh
This commit is contained in:
parent
37c47e2824
commit
5c170b8016
@ -1879,8 +1879,10 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
break;
|
||||
|
||||
case NS_THEME_MENUITEM: {
|
||||
// Clear the background to get correct transparency.
|
||||
CGContextClearRect(cgContext, macRect);
|
||||
if (thebesCtx->OriginalSurface()->GetContentType() == gfxASurface::CONTENT_COLOR_ALPHA) {
|
||||
// Clear the background to get correct transparency.
|
||||
CGContextClearRect(cgContext, macRect);
|
||||
}
|
||||
|
||||
// maybe use kThemeMenuItemHierBackground or PopUpBackground instead of just Plain?
|
||||
HIThemeMenuItemDrawInfo drawInfo;
|
||||
|
Loading…
Reference in New Issue
Block a user