Backout ea759b57d58a (bug 1223215 part 5) because the removed functions are still useful. r=me.
authorNicholas Nethercote <nnethercote@mozilla.com>
Tue, 10 Nov 2015 20:36:29 -0800
changeset 308250 55cea35b3cc657886368c1b22f11cf70def6ba0c
parent 308249 6500d4b315ec4aa2fecb1842ace06a07a1d6bd78
child 308251 f9e28bb0ab11512a7fc1c11f017f9eabf9b800c9
push id7450
push userahalberstadt@mozilla.com
push dateWed, 11 Nov 2015 20:09:05 +0000
reviewersme
bugs1223215
milestone45.0a1
backs outea759b57d58a59bad86873d56a5bb0878d8844e9
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
--- a/gfx/thebes/gfx2DGlue.h
+++ b/gfx/thebes/gfx2DGlue.h
@@ -46,21 +46,31 @@ inline gfxMatrix ThebesMatrix(const Matr
                    aMatrix._22, aMatrix._31, aMatrix._32);
 }
 
 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);
 }
 
 inline gfxRect ThebesRect(const RectDouble &aRect)
 {
   return gfxRect(aRect.x, aRect.y, aRect.width, aRect.height);