mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1221610 - Remove ToIntMargin(). r=jrmuizel.
It's now a no-op.
This commit is contained in:
parent
dea7b3fc9c
commit
a43bfe69e9
@ -51,11 +51,6 @@ inline Point ToPoint(const gfxPoint &aPoint)
|
||||
return Point(Float(aPoint.x), Float(aPoint.y));
|
||||
}
|
||||
|
||||
inline IntMargin ToIntMargin(const nsIntMargin& aMargin)
|
||||
{
|
||||
return IntMargin(aMargin.top, aMargin.right, aMargin.bottom, aMargin.left);
|
||||
}
|
||||
|
||||
inline Size ToSize(const gfxSize &aSize)
|
||||
{
|
||||
return Size(Float(aSize.width), Float(aSize.height));
|
||||
|
@ -1102,7 +1102,7 @@ nsNativeThemeGTK::DrawWidgetBackground(nsRenderingContext* aContext,
|
||||
nsIntRect overflowRect(widgetRect);
|
||||
nsIntMargin extraSize;
|
||||
if (GetExtraSizeForWidget(aFrame, aWidgetType, &extraSize)) {
|
||||
overflowRect.Inflate(gfx::ToIntMargin(extraSize));
|
||||
overflowRect.Inflate(extraSize);
|
||||
}
|
||||
|
||||
// This is the rectangle that will actually be drawn, in gdk pixels
|
||||
|
Loading…
Reference in New Issue
Block a user