mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07: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
8059d478b7
commit
151fc8f9ab
@ -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