Bug 770058. Part 2: When the document switches between active and inactive, invalidate all frames. r=mattwoodrow

This commit is contained in:
Robert O'Callahan 2012-07-03 14:24:20 +12:00
parent eeb0b9d4de
commit 94b662155b

View File

@ -3978,7 +3978,12 @@ PresShell::DocumentStatesChanged(nsIDocument* aDocument,
VERIFY_STYLE_TREE;
}
ScheduleViewManagerFlush();
if (aStateMask.HasState(NS_DOCUMENT_STATE_WINDOW_INACTIVE)) {
nsIFrame* root = mFrameConstructor->GetRootFrame();
if (root) {
root->InvalidateFrameSubtree();
}
}
}
void