Bug 709519 - Remove unused 1-argument nsRenderingContext::DrawEllipse; r=joe a=ehsan
authorMs2ger <ms2ger@gmail.com>
Tue, 13 Dec 2011 09:49:31 +1100
changeset 84452 4940c4b3c1014b8917649e6d46afc806b0a79df8
parent 84451 9f70e0a46ff8ec34a0b348b70093c33615dc25a1
child 84453 99da78c5fe27573b3e989dbfbd6eb86e1a351f7f
push id114
push userffxbld
push dateFri, 09 Mar 2012 01:01:18 +0000
treeherdermozilla-release@c081ebf13261 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersjoe, ehsan
bugs709519
milestone11.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 709519 - Remove unused 1-argument nsRenderingContext::DrawEllipse; r=joe a=ehsan
gfx/src/nsRenderingContext.cpp
gfx/src/nsRenderingContext.h
--- a/gfx/src/nsRenderingContext.cpp
+++ b/gfx/src/nsRenderingContext.cpp
@@ -379,22 +379,16 @@ nsRenderingContext::InvertRect(const nsR
     gfxContext::GraphicsOperator lastOp = mThebes->CurrentOperator();
 
     mThebes->SetOperator(gfxContext::OPERATOR_XOR);
     FillRect(aRect);
     mThebes->SetOperator(lastOp);
 }
 
 void
-nsRenderingContext::DrawEllipse(const nsRect& aRect)
-{
-    DrawEllipse(aRect.x, aRect.y, aRect.width, aRect.height);
-}
-
-void
 nsRenderingContext::DrawEllipse(nscoord aX, nscoord aY,
                                 nscoord aWidth, nscoord aHeight)
 {
     mThebes->NewPath();
     mThebes->Ellipse(gfxPoint(FROM_TWIPS(aX) + FROM_TWIPS(aWidth)/2.0,
                               FROM_TWIPS(aY) + FROM_TWIPS(aHeight)/2.0),
                      gfxSize(FROM_TWIPS(aWidth),
                              FROM_TWIPS(aHeight)));
--- a/gfx/src/nsRenderingContext.h
+++ b/gfx/src/nsRenderingContext.h
@@ -98,17 +98,16 @@ public:
 
     // Shapes
 
     void DrawLine(const nsPoint& aStartPt, const nsPoint& aEndPt);
     void DrawLine(nscoord aX0, nscoord aY0, nscoord aX1, nscoord aY1);
     void DrawRect(const nsRect& aRect);
     void DrawRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight);
     void DrawEllipse(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight);
-    void DrawEllipse(const nsRect& aRect);
 
     void FillRect(const nsRect& aRect);
     void FillRect(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight);
     void FillPolygon(const nsPoint aPoints[], PRInt32 aNumPoints);
 
     void FillEllipse(const nsRect& aRect);
     void FillEllipse(nscoord aX, nscoord aY, nscoord aWidth, nscoord aHeight);