Bug 1242421 - remove useless null check. r?roc@ocallahan.org draft
authorBogdan Postelnicu <bogdan.postelnicu@softvision.ro>
Mon, 25 Jan 2016 14:00:29 +0200
changeset 325028 0d9ed5216cfcef15670b1678dd884880c34ccba0
parent 324949 c2256ee8ae9a8ee0bf7ab49a8b1924720d846cc7
child 513437 0670d5a88bfa96eeda4f939f29e16d1f23ce5ce5
push id9965
push userbmo:bogdan.postelnicu@softvision.ro
push dateMon, 25 Jan 2016 12:03:02 +0000
reviewersroc
bugs1242421
milestone46.0a1
Bug 1242421 - remove useless null check. r?roc@ocallahan.org
gfx/2d/DrawTargetCairo.cpp
--- a/gfx/2d/DrawTargetCairo.cpp
+++ b/gfx/2d/DrawTargetCairo.cpp
@@ -1316,17 +1316,17 @@ DrawTargetCairo::FillGlyphs(ScaledFont *
   for (uint32_t i = 0; i < aBuffer.mNumGlyphs; ++i) {
     glyphs[i].index = aBuffer.mGlyphs[i].mIndex;
     glyphs[i].x = aBuffer.mGlyphs[i].mPosition.x;
     glyphs[i].y = aBuffer.mGlyphs[i].mPosition.y;
   }
 
   cairo_show_glyphs(mContext, &glyphs[0], aBuffer.mNumGlyphs);
 
-  if (mContext && cairo_surface_status(cairo_get_group_target(mContext))) {
+  if (cairo_surface_status(cairo_get_group_target(mContext))) {
     gfxDebug() << "Ending FillGlyphs with a bad surface " << cairo_surface_status(cairo_get_group_target(mContext));
   }
 }
 
 void
 DrawTargetCairo::Mask(const Pattern &aSource,
                       const Pattern &aMask,
                       const DrawOptions &aOptions /* = DrawOptions() */)