From e78c6f38848b37bdac69cca8483139a18c0d977b Mon Sep 17 00:00:00 2001 From: Jeff Muizelaar Date: Tue, 16 Jun 2015 17:11:42 -0400 Subject: [PATCH] Bug 1175286. Remove unnecessary CGContextSave/Restore pair from ClearRect. --HG-- extra : rebase_source : a4bbc99cbab0d7afacc9056eafd541c5f17c48da --- gfx/2d/DrawTargetCG.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/gfx/2d/DrawTargetCG.cpp b/gfx/2d/DrawTargetCG.cpp index 418d014def17..91386d02cb92 100644 --- a/gfx/2d/DrawTargetCG.cpp +++ b/gfx/2d/DrawTargetCG.cpp @@ -1315,11 +1315,7 @@ DrawTargetCG::ClearRect(const Rect &aRect) MarkChanged(); - CGContextSaveGState(mCg); - CGContextClearRect(mCg, RectToCGRect(aRect)); - - CGContextRestoreGState(mCg); } void