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
Родитель 8791277946
Коммит 6818e87a07
1 изменённых файлов: 5 добавлений и 3 удалений

Просмотреть файл

@ -2766,9 +2766,11 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsRenderingContext* aContext,
}
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON: {
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;
}