mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 799199: Use IndentBy() instead of looped "fputs" in nsHTMLFramesetBlankFrame's and nsLineBox's List() methods. r=bz
This commit is contained in:
parent
b8574b76ab
commit
89ff8f3754
@ -1826,7 +1826,7 @@ nsHTMLFramesetBlankFrame::List(FILE* out,
|
||||
int32_t aIndent,
|
||||
uint32_t aFlags) const
|
||||
{
|
||||
for (int32_t i = aIndent; --i >= 0; ) fputs(" ", out); // Indent
|
||||
IndentBy(out, aIndent);
|
||||
fprintf(out, "%p BLANK \n", (void*)this);
|
||||
return nsLeafFrame::List(out, aIndent, aFlags);
|
||||
}
|
||||
|
@ -228,7 +228,7 @@ nsLineBox::List(FILE* out, int32_t aIndent, uint32_t aFlags) const
|
||||
{
|
||||
int32_t i;
|
||||
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
nsFrame::IndentBy(out, aIndent);
|
||||
char cbuf[100];
|
||||
fprintf(out, "line %p: count=%d state=%s ",
|
||||
static_cast<const void*>(this), GetChildCount(),
|
||||
@ -258,12 +258,12 @@ nsLineBox::List(FILE* out, int32_t aIndent, uint32_t aFlags) const
|
||||
frame = frame->GetNextSibling();
|
||||
}
|
||||
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
if (HasFloats()) {
|
||||
nsFrame::IndentBy(out, aIndent);
|
||||
fputs("> floats <\n", out);
|
||||
ListFloats(out, aIndent + 1, mInlineData->mFloats);
|
||||
for (i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
}
|
||||
nsFrame::IndentBy(out, aIndent);
|
||||
fputs(">\n", out);
|
||||
}
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user