Bug 579663. Part 7. Assert AppUnitsPerDevPixel is constant in container layers. r=roc

This commit is contained in:
Timothy Nikkel 2010-08-08 13:49:07 -05:00
parent dbb5567320
commit 14511d2a0b

View File

@ -1053,6 +1053,9 @@ ContainerState::InvalidateForLayerChange(nsDisplayItem* aItem, Layer* aNewLayer)
}
}
NS_ASSERTION(appUnitsPerDevPixel ==
mContainerFrame->PresContext()->AppUnitsPerDevPixel(),
"app units per dev pixel should be constant in a container");
mContainerFrame->InvalidateWithFlags(
bounds - mBuilder->ToReferenceFrame(mContainerFrame),
nsIFrame::INVALIDATE_NO_THEBES_LAYERS |