mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-23 18:26:15 +00:00
Bug 654698 - Overlap the border on select elements correctly in RTL; r=jimm
This commit is contained in:
parent
f32c8d1912
commit
89895d4965
@ -1255,6 +1255,11 @@ nsNativeThemeWin::DrawWidgetBackground(nsRenderingContext* aContext,
|
|||||||
dr.y -= 1.0;
|
dr.y -= 1.0;
|
||||||
dr.width += 1.0;
|
dr.width += 1.0;
|
||||||
dr.height += 2.0;
|
dr.height += 2.0;
|
||||||
|
|
||||||
|
if (IsFrameRTL(aFrame)) {
|
||||||
|
tr.x -= 1.0;
|
||||||
|
dr.x -= 1.0;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
nsRefPtr<gfxContext> ctx = aContext->ThebesContext();
|
nsRefPtr<gfxContext> ctx = aContext->ThebesContext();
|
||||||
@ -1439,7 +1444,8 @@ RENDER_AGAIN:
|
|||||||
}
|
}
|
||||||
// The following widgets need to be RTL-aware
|
// The following widgets need to be RTL-aware
|
||||||
else if (aWidgetType == NS_THEME_MENUARROW ||
|
else if (aWidgetType == NS_THEME_MENUARROW ||
|
||||||
aWidgetType == NS_THEME_RESIZER)
|
aWidgetType == NS_THEME_RESIZER ||
|
||||||
|
aWidgetType == NS_THEME_DROPDOWN_BUTTON)
|
||||||
{
|
{
|
||||||
DrawThemeBGRTLAware(theme, hdc, part, state,
|
DrawThemeBGRTLAware(theme, hdc, part, state,
|
||||||
&widgetRect, &clipRect, IsFrameRTL(aFrame));
|
&widgetRect, &clipRect, IsFrameRTL(aFrame));
|
||||||
|
Loading…
Reference in New Issue
Block a user