Bug 1451099. Avoid expensive debugging matrix transform.

This commit is contained in:
Jeff Muizelaar 2018-04-01 11:57:14 -04:00
Родитель cc6d1ad3e3
Коммит 57b24cd272
1 изменённых файлов: 0 добавлений и 5 удалений

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

@ -356,15 +356,10 @@ struct DIGroup
aData->mGeometry = Move(geometry);
nsRect bounds = combined.GetBounds();
auto transBounds = nsLayoutUtils::MatrixTransformRect(bounds,
Matrix4x4::From2D(aMatrix),
float(appUnitsPerDevPixel));
IntRect transformedRect = ToDeviceSpace(combined.GetBounds(), aMatrix, appUnitsPerDevPixel, mGroupOffset);
ToDeviceSpace(combined.GetBounds(), aMatrix, appUnitsPerDevPixel, mGroupOffset);
aData->mRect = transformedRect.Intersect(imageRect);
GP("CGC %s %d %d %d %d\n", aItem->Name(), bounds.x, bounds.y, bounds.width, bounds.height);
GP("transBounds %d %d %d %d\n", transBounds.x, transBounds.y, transBounds.width, transBounds.height);
GP("%d %d, %f %f\n", mGroupOffset.x, mGroupOffset.y, aMatrix._11, aMatrix._22);
GP("mRect %d %d %d %d\n", aData->mRect.x, aData->mRect.y, aData->mRect.width, aData->mRect.height);
InvalidateRect(aData->mRect);