Bug 836179 - Add WriteDebugInfo so that display items can add extra information when printing display lists. r=roc

This commit is contained in:
Matt Woodrow
2013-01-30 18:07:30 +13:00
parent 085785781f
commit ab9ffdd66a
3 changed files with 32 additions and 1 deletions

View File

@@ -185,8 +185,9 @@ PrintDisplayListTo(nsDisplayListBuilder* aBuilder, const nsDisplayList& aList,
i->IsUniform(aBuilder, &color) ? " uniform" : "");
nsRegionRectIterator iter(opaque);
for (const nsRect* r = iter.Next(); r; r = iter.Next()) {
printf("(opaque %d,%d,%d,%d)", r->x, r->y, r->width, r->height);
fprintf(aOutput, "(opaque %d,%d,%d,%d)", r->x, r->y, r->width, r->height);
}
i->WriteDebugInfo(aOutput);
if (aDumpHtml && i->Painted()) {
fprintf(aOutput, "</a>");
}