Bug 1505177. Remove gfxContext::CurrentDashOffset(). r=miko
authorJonathan Watt <jwatt@jwatt.org>
Tue, 06 Nov 2018 11:50:23 +0000
changeset 504460 e13ba7026e77deebda6fbfa1518709e24f6846e5
parent 504459 b036888636d14a020679811996ae9063b6a12e6f
child 504461 a60b595747ade6cdad6b51906bc9a880f6276f19
child 504462 f7c412366d16e3a5d93aa2a249c9bf3f97ff841a
push id10290
push userffxbld-merge
push dateMon, 03 Dec 2018 16:23:23 +0000
treeherdermozilla-beta@700bed2445e6 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersmiko
bugs1505177
milestone65.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 1505177. Remove gfxContext::CurrentDashOffset(). r=miko Differential Revision: https://phabricator.services.mozilla.com/D11108
gfx/thebes/gfxContext.cpp
gfx/thebes/gfxContext.h
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -500,22 +500,16 @@ gfxContext::CurrentDash(FallibleTArray<F
 
   dashes = state.dashPattern;
 
   *offset = state.strokeOptions.mDashOffset;
 
   return true;
 }
 
-Float
-gfxContext::CurrentDashOffset() const
-{
-  return CurrentState().strokeOptions.mDashOffset;
-}
-
 void
 gfxContext::SetLineWidth(Float width)
 {
   CurrentState().strokeOptions.mLineWidth = width;
 }
 
 Float
 gfxContext::CurrentLineWidth() const
--- a/gfx/thebes/gfxContext.h
+++ b/gfx/thebes/gfxContext.h
@@ -310,18 +310,16 @@ public:
      ** Line Properties
      **/
 
     void SetDash(const Float *dashes, int ndash, Float offset);
     // Return true if dashing is set, false if it's not enabled or the
     // context is in an error state.  |offset| can be nullptr to mean
     // "don't care".
     bool CurrentDash(FallibleTArray<Float>& dashes, Float* offset) const;
-    // Returns 0.0 if dashing isn't enabled.
-    Float CurrentDashOffset() const;
 
     /**
      * Sets the line width that's used for line drawing.
      */
     void SetLineWidth(Float width);
 
     /**
      * Returns the currently set line width.