Bug 1077120 - Remove gfxContext::HasError(). r=Bas

This commit is contained in:
Jonathan Watt 2014-10-04 12:13:29 +01:00
parent c8a1b987fc
commit 2e51cb3a0f
3 changed files with 0 additions and 14 deletions

View File

@ -1159,13 +1159,6 @@ gfxContext::PointInStroke(const gfxPoint& pt)
Matrix());
}
bool
gfxContext::HasError()
{
// As far as this is concerned, an Azure context is never in error.
return false;
}
void
gfxContext::RoundedRectangle(const gfxRect& rect,
const gfxCornerSizes& corners,

View File

@ -84,11 +84,6 @@ public:
mozilla::gfx::DrawTarget *GetDrawTarget() { return mDT; }
/**
* Returns true if the cairo context is in an error state.
*/
bool HasError();
/**
** State
**/

View File

@ -619,8 +619,6 @@ nsDisplayOuterSVG::Paint(nsDisplayListBuilder* aBuilder,
nsSVGUtils::PaintFrameWithEffects(mFrame, aContext, tm, &contentAreaDirtyRect);
aContext->ThebesContext()->Restore();
NS_ASSERTION(!aContext->ThebesContext()->HasError(), "Cairo in error state");
#if defined(DEBUG) && defined(SVG_DEBUG_PAINT_TIMING)
PRTime end = PR_Now();
printf("SVG Paint Timing: %f ms\n", (end-start)/1000.0);