static void ListFloats(FILE* out, PRInt32 aIndent, const nsFloatCacheList& aFloats) { nsFloatCache* fc = aFloats.Head(); while (fc) { nsFrame::IndentBy(out, aIndent); nsIFrame* frame = fc->mFloat; fprintf(out, "floatframe@%p ", static_cast<void*>(frame)); if (frame) { nsAutoString frameName; frame->GetFrameName(frameName); fputs(NS_LossyConvertUTF16toASCII(frameName).get(), out); } else { fputs("\n###!!! NULL out-of-flow frame", out); } fprintf(out, "\n"); fc = fc->Next(); } }
static void ListFloats(FILE* out, const char* aPrefix, const nsFloatCacheList& aFloats) { nsFloatCache* fc = aFloats.Head(); while (fc) { nsCString str(aPrefix); nsIFrame* frame = fc->mFloat; str += nsPrintfCString("floatframe@%p ", static_cast<void*>(frame)); if (frame) { nsAutoString frameName; frame->GetFrameName(frameName); str += NS_ConvertUTF16toUTF8(frameName).get(); } else { str += "\n###!!! NULL out-of-flow frame"; } fprintf_stderr(out, "%s\n", str.get()); fc = fc->Next(); } }