Bug 1221610 - Remove ToIntMargin(). r=jrmuizel.

It's now a no-op.
This commit is contained in:
Nicholas Nethercote 2015-11-04 09:40:16 -08:00
parent dea7b3fc9c
commit a43bfe69e9
2 changed files with 1 additions and 6 deletions

View File

@ -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));

View File

@ -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