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 f83a8d78dc
commit 17d41ed59f

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;