[qt theme] Use GetRect() not GetContentRect() in NativeThemeQt

Neither one is correct, but GetRect() happens to work since it's inlined and just
returns a local member.  GetContentRect isn't available since it's a function
defined in gklayout, and widget does not link to layout.  (It happens to work in
libxul builds due to the way libxul is linked, but it shouldn't be used.)
This commit is contained in:
Vladimir Vukicevic 2008-04-22 04:18:32 -07:00
parent 17eed5a6ef
commit 24b6a96361

View File

@ -451,7 +451,7 @@ nsNativeThemeQt::GetMinimumWidgetSize(nsIRenderingContext* aContext, nsIFrame* a
case NS_THEME_DROPDOWN: {
QStyleOptionComboBox comboOpt;
nsRect frameRect = aFrame->GetContentRect();
nsRect frameRect = aFrame->GetRect();
QRect qRect = qRectInPixels(frameRect, p2a);
comboOpt.rect = qRect;