Bug 1067588 - Don't use source clipping if the draw won't resample. r=Bas

This commit is contained in:
Matt Woodrow 2014-09-30 13:20:35 +13:00
parent a5eb3f65b1
commit 027a4fd1a5

View File

@ -594,6 +594,7 @@ gfxUtils::DrawPixelSnapped(gfxContext* aContext,
region.Width(), region.Height());
if (aRegion.IsRestricted() &&
aContext->CurrentMatrix().HasNonIntegerTranslation() &&
drawable->DrawWithSamplingRect(aContext, aRegion.Rect(), aRegion.Restriction(),
doTile, aFilter, aOpacity)) {
return;