Bug 1047828 - Don't reserve any space for a non-existing fullscreen button on Mac OS 10.10. r=smichaud

This commit is contained in:
Markus Stange 2014-08-20 17:10:33 +02:00
parent 58776f6cfc
commit a1584c75a9

View File

@ -3059,7 +3059,8 @@ nsNativeThemeCocoa::GetMinimumWidgetSize(nsPresContext* aPresContext,
}
case NS_THEME_MOZ_MAC_FULLSCREEN_BUTTON: {
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)]) {
if ([NativeWindowForFrame(aFrame) respondsToSelector:@selector(toggleFullScreen:)] &&
!nsCocoaFeatures::OnYosemiteOrLater()) {
// This value is hardcoded because it's needed before we can measure the
// position and size of the fullscreen button.
aResult->SizeTo(16, 17);