Bug 759457. Don't fast path shadows with negative scale. r=roc

We don't support this yet, so don't bother trying.
This commit is contained in:
Jeff Muizelaar 2012-05-31 18:22:28 -04:00
Родитель e766063a2f
Коммит b67835e90a
1 изменённых файлов: 3 добавлений и 3 удалений

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

@ -4141,12 +4141,12 @@ nsContextBoxBlur::Init(const nsRect& aRect, nscoord aSpreadRadius,
gfxFloat scaleX = 1;
gfxFloat scaleY = 1;
// Do blurs in device space when possible
// If the scale is not uniform we fall back to transforming on paint.
// Do blurs in device space when possible.
// Chrome/Skia always does the blurs in device space
// and will sometimes get incorrect results (e.g. rotated blurs)
gfxMatrix transform = aDestinationCtx->CurrentMatrix();
if (transform.HasNonAxisAlignedTransform()) {
// XXX: we could probably handle negative scales but for now it's easier just to fallback
if (transform.HasNonAxisAlignedTransform() || transform.xx <= 0.0 || transform.yy <= 0.0) {
transform = gfxMatrix();
} else {
scaleX = transform.xx;