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

This commit is contained in:
pollmann%netscape.com 2001-08-06 05:19:26 +00:00
parent 8cc47c9214
commit 3e276b1a39
2 changed files with 2 additions and 2 deletions

View File

@ -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;

View File

@ -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;