From a2bc935868c8ca4bdfa60d1587abbc669e1fd052 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Tue, 20 Apr 1999 00:24:21 +0000 Subject: [PATCH] Tweaked verify-reflow implementation git-svn-id: svn://10.0.0.236/trunk@28176 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/base/nsPresShell.cpp | 24 ++++++++------------ mozilla/layout/html/base/src/nsPresShell.cpp | 24 ++++++++------------ 2 files changed, 20 insertions(+), 28 deletions(-) diff --git a/mozilla/layout/base/nsPresShell.cpp b/mozilla/layout/base/nsPresShell.cpp index 5882345272f..77d3cbfecf5 100644 --- a/mozilla/layout/base/nsPresShell.cpp +++ b/mozilla/layout/base/nsPresShell.cpp @@ -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(); diff --git a/mozilla/layout/html/base/src/nsPresShell.cpp b/mozilla/layout/html/base/src/nsPresShell.cpp index 5882345272f..77d3cbfecf5 100644 --- a/mozilla/layout/html/base/src/nsPresShell.cpp +++ b/mozilla/layout/html/base/src/nsPresShell.cpp @@ -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();