Bug 947082 - List parent style context in frame tree dumps. r=mats

This commit is contained in:
Cameron McCormack 2013-12-11 17:13:20 +11:00
parent 7bbc5b308c
commit 373bbf7210

View File

@ -5306,6 +5306,9 @@ nsIFrame::ListGeneric(FILE* out, int32_t aIndent, uint32_t aFlags) const
pseudoTag->ToString(atomString);
fprintf(out, "%s", NS_LossyConvertUTF16toASCII(atomString).get());
}
if (mParent && mStyleContext->GetParent() != mParent->StyleContext()) {
fprintf(out, ",parent=%p", mStyleContext->GetParent());
}
}
fputs("]", out);
}