Bug 1245845, part 2 - Remove code that is now useless from gfxContext::EnsurePath. r=Bas
authorJonathan Watt <jwatt@jwatt.org>
Mon, 08 Feb 2016 02:15:59 +0000
changeset 283424 37d340a97af001402ea9f7e186460d914be768c7
parent 283423 5df2781a3b0cf59ba594359e8fc674c0f903e3c0
child 283425 2294e44c9057e20860cea871209912bef0722fdc
push id29982
push usercbook@mozilla.com
push dateMon, 08 Feb 2016 10:57:27 +0000
treeherdermozilla-central@ac338559876d [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersBas
bugs1245845
milestone47.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 1245845, part 2 - Remove code that is now useless from gfxContext::EnsurePath. r=Bas
gfx/thebes/gfxContext.cpp
--- a/gfx/thebes/gfxContext.cpp
+++ b/gfx/thebes/gfxContext.cpp
@@ -999,25 +999,16 @@ gfxContext::EnsurePath()
       mat.Invert();
       mat = mPathTransform * mat;
       mPathBuilder = mPath->TransformedCopyToBuilder(mat);
       mPath = mPathBuilder->Finish();
       mPathBuilder = nullptr;
 
       mTransformChanged = false;
     }
-
-    if (FillRule::FILL_WINDING == mPath->GetFillRule()) {
-      return;
-    }
-
-    mPathBuilder = mPath->CopyToBuilder();
-
-    mPath = mPathBuilder->Finish();
-    mPathBuilder = nullptr;
     return;
   }
 
   EnsurePathBuilder();
   mPath = mPathBuilder->Finish();
   mPathBuilder = nullptr;
 }