From 3e276b1a39d051d0e40b28114aac386020a59f39 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 --- layout/base/nsPresShell.cpp | 2 +- layout/html/base/src/nsPresShell.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/layout/base/nsPresShell.cpp b/layout/base/nsPresShell.cpp index b0ad140be471..0a7b826d4cd3 100644 --- a/layout/base/nsPresShell.cpp +++ b/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/layout/html/base/src/nsPresShell.cpp b/layout/html/base/src/nsPresShell.cpp index b0ad140be471..0a7b826d4cd3 100644 --- a/layout/html/base/src/nsPresShell.cpp +++ b/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;