mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 13:51:41 +00:00
Bug 770058. Part 2: When the document switches between active and inactive, invalidate all frames. r=mattwoodrow
This commit is contained in:
parent
eeb0b9d4de
commit
94b662155b
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user