Put back this test code for one run so I can get data from Tp/Tp2

This commit is contained in:
bzbarsky@mit.edu 2007-04-29 20:11:04 -07:00
parent 2172c60660
commit 013df0d678

View File

@ -612,6 +612,14 @@ CanvasFrame::Reflow(nsPresContext* aPresContext,
FinishAndStoreOverflow(&aDesiredSize);
}
if (mContent && mContent->GetOwnerDoc() && mContent->GetOwnerDoc()->GetDocumentURI()) {
nsCAutoString uri;
mContent->GetOwnerDoc()->GetDocumentURI()->GetSpec(uri);
printf("Finished canvas reflow for %s:\n"
"Height: %d, overflow height: %d\n",
uri.get(), aDesiredSize.height, aDesiredSize.mOverflowArea.height);
}
NS_FRAME_TRACE_REFLOW_OUT("CanvasFrame::Reflow", aStatus);
NS_FRAME_SET_TRUNCATION(aStatus, aReflowState, aDesiredSize);
return NS_OK;