Bug 1505177. Remove gfxContext::CurrentDashOffset(). r=miko
authorJonathan Watt <jwatt@jwatt.org>
Tue, 06 Nov 2018 11:50:23 +0000
changeset 507240 e13ba7026e77deebda6fbfa1518709e24f6846e5
parent 507239 b036888636d14a020679811996ae9063b6a12e6f
child 507241 a60b595747ade6cdad6b51906bc9a880f6276f19
child 507242 f7c412366d16e3a5d93aa2a249c9bf3f97ff841a
push id1905
push userffxbld-merge
push dateMon, 21 Jan 2019 12:33:13 +0000
treeherdermozilla-release@c2fca1944d8c [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.