disabled delayed handling of reflow commands (pre rev 3.208). r=nisheeth

This commit is contained in:
karnaze%netscape.com 1999-11-12 04:41:34 +00:00
parent 0f5432934f
commit fcfef2de8f
2 changed files with 8 additions and 4 deletions

View File

@ -1422,6 +1422,8 @@ PresShell::AlreadyInQueue(nsIReflowCommand* aReflowCommand)
nsIFrame* targetFrame;
PRBool inQueue = PR_FALSE;
return PR_FALSE; // Turn off coalescing of reflow commands
if (NS_SUCCEEDED(aReflowCommand->GetTarget(targetFrame))) {
// Iterate over the reflow commands and compare the targeted frames.
for (i = 0; i < n; i++) {
@ -2060,7 +2062,7 @@ PresShell::ContentAppended(nsIDocument *aDocument,
MOZ_TIMER_DEBUGLOG(("Stop: Frame Creation: PresShell::ContentAppended(), this=%p\n", this));
MOZ_TIMER_STOP(mFrameCreationWatch);
ExitReflowLock(PR_TRUE, PR_FALSE);
ExitReflowLock(PR_TRUE, PR_TRUE);
return rv;
}
@ -2073,7 +2075,7 @@ PresShell::ContentInserted(nsIDocument* aDocument,
EnterReflowLock();
nsresult rv = mStyleSet->ContentInserted(mPresContext, aContainer, aChild, aIndexInContainer);
VERIFY_STYLE_TREE;
ExitReflowLock(PR_TRUE, PR_FALSE);
ExitReflowLock(PR_TRUE, PR_TRUE);
return rv;
}

View File

@ -1422,6 +1422,8 @@ PresShell::AlreadyInQueue(nsIReflowCommand* aReflowCommand)
nsIFrame* targetFrame;
PRBool inQueue = PR_FALSE;
return PR_FALSE; // Turn off coalescing of reflow commands
if (NS_SUCCEEDED(aReflowCommand->GetTarget(targetFrame))) {
// Iterate over the reflow commands and compare the targeted frames.
for (i = 0; i < n; i++) {
@ -2060,7 +2062,7 @@ PresShell::ContentAppended(nsIDocument *aDocument,
MOZ_TIMER_DEBUGLOG(("Stop: Frame Creation: PresShell::ContentAppended(), this=%p\n", this));
MOZ_TIMER_STOP(mFrameCreationWatch);
ExitReflowLock(PR_TRUE, PR_FALSE);
ExitReflowLock(PR_TRUE, PR_TRUE);
return rv;
}
@ -2073,7 +2075,7 @@ PresShell::ContentInserted(nsIDocument* aDocument,
EnterReflowLock();
nsresult rv = mStyleSet->ContentInserted(mPresContext, aContainer, aChild, aIndexInContainer);
VERIFY_STYLE_TREE;
ExitReflowLock(PR_TRUE, PR_FALSE);
ExitReflowLock(PR_TRUE, PR_TRUE);
return rv;
}