Tweaked verify-reflow implementation

git-svn-id: svn://10.0.0.236/trunk@28176 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-04-20 00:24:21 +00:00
parent 02a81bf0fd
commit a2bc935868
2 changed files with 20 additions and 28 deletions

View File

@@ -1254,13 +1254,13 @@ PresShell::ProcessReflowCommands()
if (GetVerifyReflowEnable()) {
// First synchronously render what we have so far so that we can
// see it.
if (gVerifyReflowAll) {
printf("Before verify-reflow\n");
// if (gVerifyReflowAll) {
// printf("Before verify-reflow\n");
nsIView* rootView;
mViewManager->GetRootView(rootView);
mViewManager->UpdateView(rootView, nsnull, NS_VMREFRESH_IMMEDIATE);
PR_Sleep(PR_SecondsToInterval(3));
}
// PR_Sleep(PR_SecondsToInterval(3));
// }
mInVerifyReflow = PR_TRUE;
VerifyIncrementalReflow();
@@ -2200,10 +2200,6 @@ LogVerifyMessage(nsIFrame* k1, nsIFrame* k2, const char* aMsg,
stdout << r2;
printf(" %s\n", aMsg);
if (gVerifyReflowAll) {
k1->List(stdout, 1);
k2->List(stdout, 1);
}
}
static PRBool
@@ -2541,16 +2537,16 @@ PresShell::VerifyIncrementalReflow()
root2 = FindTopFrame(root2);
#endif
if (!CompareTrees(root1, root2)) {
if (!gVerifyReflowAll) {
printf("Verify reflow failed, primary tree:\n");
root1->List(stdout, 0);
printf("Verification tree:\n");
root2->List(stdout, 0);
}
printf("Verify reflow failed, primary tree:\n");
root1->List(stdout, 0);
printf("Verification tree:\n");
root2->List(stdout, 0);
}
// printf("Incremental reflow doomed view tree:\n");
// view->List(stdout, 1);
// view->SetVisibility(nsViewVisibility_kHide);
cx->Stop();
cx->SetContainer(nsnull);
NS_RELEASE(cx);
sh->EndObservingDocument();

View File

@@ -1254,13 +1254,13 @@ PresShell::ProcessReflowCommands()
if (GetVerifyReflowEnable()) {
// First synchronously render what we have so far so that we can
// see it.
if (gVerifyReflowAll) {
printf("Before verify-reflow\n");
// if (gVerifyReflowAll) {
// printf("Before verify-reflow\n");
nsIView* rootView;
mViewManager->GetRootView(rootView);
mViewManager->UpdateView(rootView, nsnull, NS_VMREFRESH_IMMEDIATE);
PR_Sleep(PR_SecondsToInterval(3));
}
// PR_Sleep(PR_SecondsToInterval(3));
// }
mInVerifyReflow = PR_TRUE;
VerifyIncrementalReflow();
@@ -2200,10 +2200,6 @@ LogVerifyMessage(nsIFrame* k1, nsIFrame* k2, const char* aMsg,
stdout << r2;
printf(" %s\n", aMsg);
if (gVerifyReflowAll) {
k1->List(stdout, 1);
k2->List(stdout, 1);
}
}
static PRBool
@@ -2541,16 +2537,16 @@ PresShell::VerifyIncrementalReflow()
root2 = FindTopFrame(root2);
#endif
if (!CompareTrees(root1, root2)) {
if (!gVerifyReflowAll) {
printf("Verify reflow failed, primary tree:\n");
root1->List(stdout, 0);
printf("Verification tree:\n");
root2->List(stdout, 0);
}
printf("Verify reflow failed, primary tree:\n");
root1->List(stdout, 0);
printf("Verification tree:\n");
root2->List(stdout, 0);
}
// printf("Incremental reflow doomed view tree:\n");
// view->List(stdout, 1);
// view->SetVisibility(nsViewVisibility_kHide);
cx->Stop();
cx->SetContainer(nsnull);
NS_RELEASE(cx);
sh->EndObservingDocument();