mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-16 22:04:36 +00:00
Bug 933019, part 8 - Remove code for handling Thebes backed gfxContext in nsNativeThemeCocoa.mm. r=Bas
This commit is contained in:
parent
79e50a9f0b
commit
c4cf06b2d2
@ -2256,14 +2256,9 @@ nsNativeThemeCocoa::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
|
||||
case NS_THEME_MENUITEM:
|
||||
case NS_THEME_CHECKMENUITEM: {
|
||||
bool isTransparent;
|
||||
if (thebesCtx->IsCairo()) {
|
||||
isTransparent = thebesCtx->OriginalSurface()->GetContentType() == gfxContentType::COLOR_ALPHA;
|
||||
} else {
|
||||
SurfaceFormat format = thebesCtx->GetDrawTarget()->GetFormat();
|
||||
isTransparent = (format == SurfaceFormat::R8G8B8A8) ||
|
||||
(format == SurfaceFormat::B8G8R8A8);
|
||||
}
|
||||
SurfaceFormat format = thebesCtx->GetDrawTarget()->GetFormat();
|
||||
bool isTransparent = (format == SurfaceFormat::R8G8B8A8) ||
|
||||
(format == SurfaceFormat::B8G8R8A8);
|
||||
if (isTransparent) {
|
||||
// Clear the background to get correct transparency.
|
||||
CGContextClearRect(cgContext, macRect);
|
||||
|
Loading…
x
Reference in New Issue
Block a user