Bug 1274726. Clamp scaled image before repeating during prescale and repeat on OS X. r=jrmuizel

This commit is contained in:
Mason Chang 2016-06-03 13:30:21 -07:00
Родитель 78e49e2efb
Коммит 8aa8c72839
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -604,7 +604,9 @@ PrescaleAndTileDrawable(gfxDrawable* aDrawable,
scaledDT->SetTransform(ToMatrix(scaleMatrix));
gfxRect gfxImageRect(aImageRect.x, aImageRect.y, aImageRect.width, aImageRect.height);
aDrawable->Draw(tmpCtx, gfxImageRect, aExtendMode, aSamplingFilter, 1.0, gfxMatrix());
// Since this is just the scaled image, we don't want to repeat anything yet.
aDrawable->Draw(tmpCtx, gfxImageRect, ExtendMode::CLAMP, aSamplingFilter, 1.0, gfxMatrix());
RefPtr<SourceSurface> scaledImage = scaledDT->Snapshot();