Bug 1447834. Remove gfxContext::CurrentPoint. r=mstange draft
authorJeff Muizelaar <jmuizelaar@mozilla.com>
Wed, 21 Mar 2018 18:54:32 -0400
changeset 770873 30b600a2e18f51fc0e89a912dfdc2f55dcc88c2a
parent 770144 2adda34a5051e4fd5bedbac021c3a712125a43af
push id103522
push userbmo:jmuizelaar@mozilla.com
push dateWed, 21 Mar 2018 22:57:43 +0000
reviewersmstange
bugs1447834
milestone61.0a1
Bug 1447834. Remove gfxContext::CurrentPoint. r=mstange MozReview-Commit-ID: 8QEFG5aSPZY
gfx/thebes/gfxContext.cpp
gfx/thebes/gfxContext.h
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -207,23 +207,16 @@ void gfxContext::SetPath(Path* path)
              path->GetBackendType() == BackendType::RECORDING ||
              (mDT->GetBackendType() == BackendType::DIRECT2D1_1 && path->GetBackendType() == BackendType::DIRECT2D));
   mPath = path;
   mPathBuilder = nullptr;
   mPathIsRect = false;
   mTransformChanged = false;
 }
 
-gfxPoint
-gfxContext::CurrentPoint()
-{
-  EnsurePathBuilder();
-  return ThebesPoint(mPathBuilder->CurrentPoint());
-}
-
 void
 gfxContext::Fill()
 {
   Fill(PatternFromState(this));
 }
 
 void
 gfxContext::Fill(const Pattern& aPattern)
--- a/gfx/thebes/gfxContext.h
+++ b/gfx/thebes/gfxContext.h
@@ -130,21 +130,16 @@ public:
     void SetPath(Path* path);
 
     /**
      * Moves the pen to a new point without drawing a line.
      */
     void MoveTo(const gfxPoint& pt);
 
     /**
-     * Returns the current point in the current path.
-     */
-    gfxPoint CurrentPoint();
-
-    /**
      * Draws a line from the current point to pt.
      *
      * @see MoveTo
      */
     void LineTo(const gfxPoint& pt);
 
     // path helpers
     /**