mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-02-23 10:54:33 +00:00
Don't flush out reflows if we have painting suppressed and something else in
our viewmanager tree is painting. Bug 282764, r+sr=roc
This commit is contained in:
parent
8d0f902991
commit
79388227de
@ -6115,8 +6115,10 @@ PresShell::IsVisible()
|
||||
NS_IMETHODIMP_(void)
|
||||
PresShell::WillPaint()
|
||||
{
|
||||
// Don't reenter reflow and don't reflow during frame construction
|
||||
if (mIsReflowing || mChangeNestCount) {
|
||||
// Don't reenter reflow and don't reflow during frame construction. Also
|
||||
// don't bother reflowing if some viewmanager in our tree is painting while
|
||||
// we still have painting suppressed.
|
||||
if (mIsReflowing || mChangeNestCount || mPaintingSuppressed) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user