Added debug code that syncs up the display when running slow so that incremental loading reflow can be visible

git-svn-id: svn://10.0.0.236/trunk@5236 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp
1998-07-09 17:08:40 +00:00
parent f3712a5860
commit 0e49486b51
2 changed files with 36 additions and 0 deletions

View File

@@ -724,6 +724,24 @@ HTMLContentSink::CloseContainer(const nsIParserNode& aNode)
parent->AppendChild(container, allowReflow);
#ifdef NS_DEBUG
if (allowReflow && (((PRInt32)gSinkLogModuleInfo->level) > 127)) {
PRInt32 i, ns = mDocument->GetNumberOfShells();
for (i = 0; i < ns; i++) {
nsIPresShell* shell = mDocument->GetShellAt(i);
if (nsnull != shell) {
nsIViewManager* vm = shell->GetViewManager();
if(vm) {
nsIView* rootView = vm->GetRootView();
nsRect rect;
rootView->GetBounds(rect);
rect.x = 0;
rect.y = 0;
vm->Refresh(rootView, nsnull, &rect, NS_VMREFRESH_IMMEDIATE);
NS_RELEASE(rootView);
}
NS_RELEASE(vm);
NS_RELEASE(shell);
}
}
printf("tick...\n");
PR_Sleep(PR_SecondsToInterval(3));
}