зеркало из https://github.com/mozilla/gecko-dev.git
fix gcc scoping problem.
This commit is contained in:
Родитель
d947f798e6
Коммит
cf94e62e94
|
@ -929,12 +929,14 @@ nsNativeThemeMac::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame*
|
||||||
break;
|
break;
|
||||||
|
|
||||||
case NS_THEME_TEXTFIELD:
|
case NS_THEME_TEXTFIELD:
|
||||||
|
{
|
||||||
// at minimum, we should be tall enough for 9pt text.
|
// at minimum, we should be tall enough for 9pt text.
|
||||||
SInt32 shadow = 0, frameOutset = 0;
|
SInt32 shadow = 0, frameOutset = 0;
|
||||||
::GetThemeMetric(kThemeMetricEditTextWhitespace, &shadow);
|
::GetThemeMetric(kThemeMetricEditTextWhitespace, &shadow);
|
||||||
::GetThemeMetric(kThemeMetricEditTextFrameOutset, &frameOutset);
|
::GetThemeMetric(kThemeMetricEditTextFrameOutset, &frameOutset);
|
||||||
aResult->SizeTo(0, (shadow + frameOutset) * 2 + 9);
|
aResult->SizeTo(0, (shadow + frameOutset) * 2 + 9);
|
||||||
break;
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
case NS_THEME_PROGRESSBAR:
|
case NS_THEME_PROGRESSBAR:
|
||||||
{
|
{
|
||||||
|
|
Загрузка…
Ссылка в новой задаче