Backed out changeset 5706a9c6704a (bug 913614) for OSX bustage. a=backout
authorRyan VanderMeulen <ryanvm@gmail.com>
Thu, 12 Sep 2013 10:34:00 -0400
changeset 154031 97e0d6a036967228b3fe2cef8d932841978cc943
parent 154030 1708e75f93f570e9e5ce728250edaa14ed897967
child 154032 74efb2b26f7cf2872dc543f100fd9791a81d8e89
push id2859
push userakeybl@mozilla.com
push dateMon, 16 Sep 2013 19:14:59 +0000
treeherdermozilla-beta@87d3c51cd2bf [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbackout
bugs913614
milestone25.0a2
backs out5706a9c6704a0e60c3bc4208d575a5cab2b47fe4
Backed out changeset 5706a9c6704a (bug 913614) for OSX bustage. a=backout
gfx/2d/DrawTargetCG.cpp
--- a/gfx/2d/DrawTargetCG.cpp
+++ b/gfx/2d/DrawTargetCG.cpp
@@ -785,23 +785,16 @@ DrawTargetCG::FillRect(const Rect &aRect
 
   fixer.Fix(mCg);
   CGContextRestoreGState(mCg);
 }
 
 void
 DrawTargetCG::StrokeLine(const Point &p1, const Point &p2, const Pattern &aPattern, const StrokeOptions &aStrokeOptions, const DrawOptions &aDrawOptions)
 {
-  if (!std::isfinite(p1.x) ||
-      !std::isfinite(p1.y) ||
-      !std::isfinite(p2.x) ||
-      !std::isfinite(p2.y)) {
-    return;
-  }
-
   MarkChanged();
 
   CGContextSaveGState(mCg);
 
   UnboundnessFixer fixer;
   CGContextRef cg = fixer.Check(mCg, aDrawOptions.mCompositionOp);
   CGContextSetAlpha(mCg, aDrawOptions.mAlpha);
   CGContextSetShouldAntialias(cg, aDrawOptions.mAntialiasMode != AA_NONE);
@@ -831,20 +824,16 @@ DrawTargetCG::StrokeLine(const Point &p1
 }
 
 void
 DrawTargetCG::StrokeRect(const Rect &aRect,
                          const Pattern &aPattern,
                          const StrokeOptions &aStrokeOptions,
                          const DrawOptions &aDrawOptions)
 {
-  if (!aRect.IsFinite()) {
-    return;
-  }
-
   MarkChanged();
 
   CGContextSaveGState(mCg);
 
   UnboundnessFixer fixer;
   CGContextRef cg = fixer.Check(mCg, aDrawOptions.mCompositionOp);
   CGContextSetAlpha(mCg, aDrawOptions.mAlpha);
   CGContextSetShouldAntialias(cg, aDrawOptions.mAntialiasMode != AA_NONE);
@@ -884,20 +873,16 @@ DrawTargetCG::ClearRect(const Rect &aRec
   CGContextClearRect(mCg, RectToCGRect(aRect));
 
   CGContextRestoreGState(mCg);
 }
 
 void
 DrawTargetCG::Stroke(const Path *aPath, const Pattern &aPattern, const StrokeOptions &aStrokeOptions, const DrawOptions &aDrawOptions)
 {
-  if (!aPath->GetBounds().IsFinite()) {
-    return;
-  }
-
   MarkChanged();
 
   CGContextSaveGState(mCg);
 
   UnboundnessFixer fixer;
   CGContextRef cg = fixer.Check(mCg, aDrawOptions.mCompositionOp);
   CGContextSetAlpha(mCg, aDrawOptions.mAlpha);
   CGContextSetShouldAntialias(cg, aDrawOptions.mAntialiasMode != AA_NONE);