Bug 637852. Part 12: Dump layer trees and display lists to stdout instead of stderr so that they stay in order with window.dump() and other output. r=tnikkel

This commit is contained in:
Robert O'Callahan 2011-06-23 00:11:28 +12:00
Родитель 97960f031f
Коммит a034a797ad
3 изменённых файлов: 6 добавлений и 6 удалений

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

@ -2101,7 +2101,7 @@ void
FrameLayerBuilder::DumpRetainedLayerTree() FrameLayerBuilder::DumpRetainedLayerTree()
{ {
if (mRetainingManager) { if (mRetainingManager) {
mRetainingManager->Dump(stderr); mRetainingManager->Dump(stdout);
} }
} }
#endif #endif

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

@ -213,7 +213,7 @@ void
nsFrame::PrintDisplayList(nsDisplayListBuilder* aBuilder, nsFrame::PrintDisplayList(nsDisplayListBuilder* aBuilder,
const nsDisplayList& aList) const nsDisplayList& aList)
{ {
PrintDisplayListTo(aBuilder, aList, 0, stderr); PrintDisplayListTo(aBuilder, aList, 0, stdout);
} }
#endif #endif

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

@ -1292,7 +1292,7 @@ nsLayoutUtils::GetFramesForArea(nsIFrame* aFrame, const nsRect& aRect,
#ifdef DEBUG #ifdef DEBUG
if (gDumpEventList) { if (gDumpEventList) {
fprintf(stderr, "Event handling --- (%d,%d):\n", aRect.x, aRect.y); fprintf(stdout, "Event handling --- (%d,%d):\n", aRect.x, aRect.y);
nsFrame::PrintDisplayList(&builder, list); nsFrame::PrintDisplayList(&builder, list);
} }
#endif #endif
@ -1601,7 +1601,7 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
#ifdef DEBUG #ifdef DEBUG
if (gDumpPaintList) { if (gDumpPaintList) {
fprintf(stderr, "Painting --- before optimization (dirty %d,%d,%d,%d):\n", fprintf(stdout, "Painting --- before optimization (dirty %d,%d,%d,%d):\n",
dirtyRect.x, dirtyRect.y, dirtyRect.width, dirtyRect.height); dirtyRect.x, dirtyRect.y, dirtyRect.width, dirtyRect.height);
nsFrame::PrintDisplayList(&builder, list); nsFrame::PrintDisplayList(&builder, list);
} }
@ -1653,10 +1653,10 @@ nsLayoutUtils::PaintFrame(nsRenderingContext* aRenderingContext, nsIFrame* aFram
#ifdef DEBUG #ifdef DEBUG
if (gDumpPaintList) { if (gDumpPaintList) {
fprintf(stderr, "Painting --- after optimization:\n"); fprintf(stdout, "Painting --- after optimization:\n");
nsFrame::PrintDisplayList(&builder, list); nsFrame::PrintDisplayList(&builder, list);
fprintf(stderr, "Painting --- retained layer tree:\n"); fprintf(stdout, "Painting --- retained layer tree:\n");
builder.LayerBuilder()->DumpRetainedLayerTree(); builder.LayerBuilder()->DumpRetainedLayerTree();
} }
#endif #endif