Bug 777924 - Invalidate layers when transitioning out of flattening component alpha. r=roc

This commit is contained in:
Matt Woodrow 2012-07-27 15:02:46 +12:00
parent aece3ea32b
commit 7d4513adad

View File

@ -1643,8 +1643,11 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight)
}
for (nsIFrame* f = rootFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) {
if (f->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) {
f->InvalidateFrameSubtree();
f->RemoveStateBits(NS_FRAME_NO_COMPONENT_ALPHA);
}
}
Element *root = mDocument->GetRootElement();