mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-20 16:55:40 +00:00
Bug 605815. Only compute size for titlebar widget when DWM is on. r=jimm a=final
This commit is contained in:
parent
74dace6d6e
commit
8953f73c41
@ -1931,16 +1931,19 @@ nsNativeThemeWin::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
|
||||
|
||||
case NS_THEME_WINDOW_BUTTON_BOX:
|
||||
case NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED:
|
||||
QueryForButtonData(aFrame);
|
||||
aResult->width = nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cx;
|
||||
aResult->height = nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cy
|
||||
- GetSystemMetrics(SM_CYFRAME);
|
||||
if (aWidgetType == NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED) {
|
||||
aResult->width += 1;
|
||||
aResult->height -= 2;
|
||||
if (nsUXThemeData::CheckForCompositor()) {
|
||||
QueryForButtonData(aFrame);
|
||||
aResult->width = nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cx;
|
||||
aResult->height = nsUXThemeData::sCommandButtons[CMDBUTTONIDX_BUTTONBOX].cy
|
||||
- GetSystemMetrics(SM_CYFRAME);
|
||||
if (aWidgetType == NS_THEME_WINDOW_BUTTON_BOX_MAXIMIZED) {
|
||||
aResult->width += 1;
|
||||
aResult->height -= 2;
|
||||
}
|
||||
*aIsOverridable = PR_FALSE;
|
||||
return NS_OK;
|
||||
}
|
||||
*aIsOverridable = PR_FALSE;
|
||||
return NS_OK;
|
||||
break;
|
||||
|
||||
case NS_THEME_WINDOW_FRAME_LEFT:
|
||||
case NS_THEME_WINDOW_FRAME_RIGHT:
|
||||
|
Loading…
Reference in New Issue
Block a user