Commit a00a8807 authored by Markus Stange's avatar Markus Stange
Browse files

Bug 734381 - Don't clear the background behind menuitems when painting into a...

Bug 734381 - Don't clear the background behind menuitems when painting into a context without transparency. r=josh
parent 4b16c44d
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -1879,8 +1879,10 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext,
      break;

    case NS_THEME_MENUITEM: {
      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;