diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index b6a5ad42884..48ab2160a11 100644 --- a/layout/base/nsPresShell.cpp +++ b/layout/base/nsPresShell.cpp @@ -1643,7 +1643,10 @@ PresShell::InitialReflow(nscoord aWidth, nscoord aHeight) } for (nsIFrame* f = rootFrame; f; f = nsLayoutUtils::GetCrossDocParentFrame(f)) { - f->RemoveStateBits(NS_FRAME_NO_COMPONENT_ALPHA); + if (f->GetStateBits() & NS_FRAME_NO_COMPONENT_ALPHA) { + f->InvalidateFrameSubtree(); + f->RemoveStateBits(NS_FRAME_NO_COMPONENT_ALPHA); + } } Element *root = mDocument->GetRootElement();