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
Родитель 33d9c4b401
Коммит a4837facf1
1 изменённых файлов: 8 добавлений и 0 удалений

Просмотреть файл

@ -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;