Backout Bug 513006 since it may have caused Bug 656218

--HG--
extra : rebase_source : 6d2e2822dbf35198247fbb35e185ce33ecf29afb
This commit is contained in:
Olli Pettay 2011-05-11 23:13:51 +03:00
parent ae533a3fb4
commit 4c1a67926b

View File

@ -1037,23 +1037,6 @@ nsNativeThemeGTK::GetMinimumWidgetSize(nsRenderingContext* aContext,
*aIsOverridable = PR_FALSE; *aIsOverridable = PR_FALSE;
} }
break; break;
case NS_THEME_SCROLLBAR_TRACK_HORIZONTAL:
case NS_THEME_SCROLLBAR_TRACK_VERTICAL:
{
MozGtkScrollbarMetrics metrics;
moz_gtk_get_scrollbar_metrics(&metrics);
if (aWidgetType == NS_THEME_SCROLLBAR_TRACK_VERTICAL) {
aResult->width = metrics.slider_width;
aResult->height = metrics.min_slider_size;
} else {
aResult->height = metrics.slider_width;
aResult->width = metrics.min_slider_size;
}
*aIsOverridable = PR_FALSE;
}
break;
case NS_THEME_SCROLLBAR_THUMB_VERTICAL: case NS_THEME_SCROLLBAR_THUMB_VERTICAL:
case NS_THEME_SCROLLBAR_THUMB_HORIZONTAL: case NS_THEME_SCROLLBAR_THUMB_HORIZONTAL:
{ {