mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 05:15:45 +00:00
disabled delayed handling of reflow commands (pre rev 3.208). r=nisheeth
This commit is contained in:
parent
0f5432934f
commit
fcfef2de8f
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user