From f7b2001d62a46eb30c4ddf37fb0db959a9466d6e Mon Sep 17 00:00:00 2001 From: Nicholas Nethercote Date: Tue, 10 Nov 2015 20:36:29 -0800 Subject: [PATCH] Backout ea759b57d58a (bug 1223215 part 5) because the removed functions are still useful. r=me. DONTBUILD because it just adds back a couple of small, unused functions. --- gfx/thebes/gfx2DGlue.h | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/gfx/thebes/gfx2DGlue.h b/gfx/thebes/gfx2DGlue.h index 1b2e56ed9a08..6b650b65d9f7 100644 --- a/gfx/thebes/gfx2DGlue.h +++ b/gfx/thebes/gfx2DGlue.h @@ -51,11 +51,21 @@ inline Point ToPoint(const gfxPoint &aPoint) return Point(Float(aPoint.x), Float(aPoint.y)); } +inline Size ToSize(const gfxSize &aSize) +{ + return Size(Float(aSize.width), Float(aSize.height)); +} + inline gfxPoint ThebesPoint(const Point &aPoint) { return gfxPoint(aPoint.x, aPoint.y); } +inline gfxSize ThebesSize(const Size &aSize) +{ + return gfxSize(aSize.width, aSize.height); +} + inline gfxRect ThebesRect(const Rect &aRect) { return gfxRect(aRect.x, aRect.y, aRect.width, aRect.height);