Bug 880124 - Make -moz-mac-fullscreen-button 0px wide on 10.6, which doesn't have a fullscreen button. r=smichaud

This commit is contained in:
Markus Stange 2013-06-07 11:54:35 +02:00
parent 3debe1ee2d
commit f28098175a

View File

@ -2766,9 +2766,11 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsRenderingContext* aContext,
}
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON: {
// This value is hardcoded because it's needed before we can measure the
// position and size of the fullscreen button.
aResult->SizeTo(20, 0);
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)]) {
// This value is hardcoded because it's needed before we can measure the
// position and size of the fullscreen button.
aResult->SizeTo(20, 0);
}
break;
}