mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-25 05:41:12 +00:00
[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:
parent
65425b3598
commit
a2e1cce21c
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user