Bug 590468. Part 3: Make Cocoa theme aware that statusbars are always opaque. r=joshmoz

This commit is contained in:
Robert O'Callahan 2010-08-27 18:15:08 -05:00
parent 42717b4a2e
commit a920df2401

View File

@ -2531,7 +2531,9 @@ nsNativeThemeCocoa::GetWidgetTransparency(nsIFrame* aFrame, PRUint8 aWidgetType)
case NS_THEME_SCROLLBAR_SMALL:
case NS_THEME_SCROLLBAR:
// Scrollbars are drawn opaque. Knowing this improves performance.
case NS_THEME_STATUSBAR:
// Knowing that scrollbars and statusbars are opaque improves
// performance, because we create layers for them.
return eOpaque;
default: