Bug 801365 - Invalidate ThebesLayers if the zoom factor changes. r=roc

This commit is contained in:
Matt Woodrow 2012-10-16 14:10:51 +13:00
parent f743e85a32
commit 48c7fedb20

View File

@ -1280,7 +1280,8 @@ ContainerState::CreateOrRecycleThebesLayer(const nsIFrame* aActiveScrolledRoot,
// we ensure that mInvalidThebesContent is updated according to the
// scroll position as of the most recent paint.
if (!FuzzyEqual(data->mXScale, mParameters.mXScale, 0.00001) ||
!FuzzyEqual(data->mYScale, mParameters.mYScale, 0.00001)) {
!FuzzyEqual(data->mYScale, mParameters.mYScale, 0.00001) ||
data->mAppUnitsPerDevPixel != mAppUnitsPerDevPixel) {
InvalidateEntireThebesLayer(layer, aActiveScrolledRoot);
didResetScrollPositionForLayerPixelAlignment = true;
}