зеркало из https://github.com/mozilla/gecko-dev.git
Bug 734381 - Don't clear the background behind menuitems when painting into a context without transparency. r=josh
This commit is contained in:
Родитель
4b16c44d01
Коммит
a00a880764
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче