mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-21 09:15:35 +00:00
[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:
parent
17eed5a6ef
commit
24b6a96361
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user