[DEBUG-only] Print a warning if we find a null float in the float cache. b=387651 r+sr=roc

This commit is contained in:
mats.palmgren@bredband.net 2007-07-22 06:37:36 -07:00
parent 65425b3598
commit a2e1cce21c

View File

@ -142,10 +142,10 @@ ListFloats(FILE* out, PRInt32 aIndent, const nsFloatCacheList& aFloats)
while (fc) {
nsFrame::IndentBy(out, aIndent);
nsPlaceholderFrame* ph = fc->mPlaceholder;
if (nsnull != ph) {
if (ph) {
fprintf(out, "placeholder@%p ", static_cast<void*>(ph));
nsIFrame* frame = ph->GetOutOfFlowFrame();
if (nsnull != frame) {
if (frame) {
nsIFrameDebug* frameDebug;
if (NS_SUCCEEDED(frame->QueryInterface(NS_GET_IID(nsIFrameDebug), (void**)&frameDebug))) {
@ -157,6 +157,9 @@ ListFloats(FILE* out, PRInt32 aIndent, const nsFloatCacheList& aFloats)
fc->mRegion.x, fc->mRegion.y,
fc->mRegion.width, fc->mRegion.height);
if (!frame) {
fputs("\n###!!! NULL out-of-flow frame", out);
}
fprintf(out, "\n");
}
fc = fc->Next();