From dd0cb6e2192ca37ba50cfbb4ec3d635ad8994222 Mon Sep 17 00:00:00 2001 From: "pollmann%netscape.com" Date: Mon, 6 Aug 2001 05:19:26 +0000 Subject: [PATCH] Bug 81546: Don't add a dummy reflow request if we are in the middle of reflow; this was added by textareas in XHTML documents, and never removed, which prevented them from displaying. r=waterson@netscape.com,sr=attinasi@netscape.com git-svn-id: svn://10.0.0.236/trunk@100384 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 2 +- mozilla/layout/html/base/src/nsPresShell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index b0ad140be47..0a7b826d4cd 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -6138,7 +6138,7 @@ PresShell::AddDummyLayoutRequest(void) { nsresult rv = NS_OK; - if (gAsyncReflowDuringDocLoad) { + if (gAsyncReflowDuringDocLoad && !mIsReflowing) { rv = DummyLayoutRequest::Create(getter_AddRefs(mDummyLayoutRequest), this); if (NS_FAILED(rv)) return rv; diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index b0ad140be47..0a7b826d4cd 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -6138,7 +6138,7 @@ PresShell::AddDummyLayoutRequest(void) { nsresult rv = NS_OK; - if (gAsyncReflowDuringDocLoad) { + if (gAsyncReflowDuringDocLoad && !mIsReflowing) { rv = DummyLayoutRequest::Create(getter_AddRefs(mDummyLayoutRequest), this); if (NS_FAILED(rv)) return rv;