mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
c3a42e1753
commit
9508697b3b
@ -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