зеркало из https://github.com/mozilla/gecko-dev.git
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:
Родитель
8d0f902991
Коммит
79388227de
|
@ -6115,8 +6115,10 @@ PresShell::IsVisible()
|
||||||
NS_IMETHODIMP_(void)
|
NS_IMETHODIMP_(void)
|
||||||
PresShell::WillPaint()
|
PresShell::WillPaint()
|
||||||
{
|
{
|
||||||
// Don't reenter reflow and don't reflow during frame construction
|
// Don't reenter reflow and don't reflow during frame construction. Also
|
||||||
if (mIsReflowing || mChangeNestCount) {
|
// don't bother reflowing if some viewmanager in our tree is painting while
|
||||||
|
// we still have painting suppressed.
|
||||||
|
if (mIsReflowing || mChangeNestCount || mPaintingSuppressed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче