mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-06 14:44:26 +00:00
Bug 1078005 - Skip sending MozAfterPaint events to hidden PresShells. r=roc
This commit is contained in:
parent
9940acb270
commit
1218998a7e
@ -2524,6 +2524,11 @@ nsPresContext::NotifyDidPaintForSubtree(uint32_t aFlags)
|
||||
return;
|
||||
}
|
||||
}
|
||||
|
||||
if (!PresShell()->IsVisible() && !mFireAfterPaintEvents) {
|
||||
return;
|
||||
}
|
||||
|
||||
// Non-root prescontexts fire MozAfterPaint to all their descendants
|
||||
// unconditionally, even if no invalidations have been collected. This is
|
||||
// because we don't want to eat the cost of collecting invalidations for
|
||||
|
Loading…
x
Reference in New Issue
Block a user