Bug 788202 - Add optional subdocument traversal to nsIFrame::List. r=bz

Add subdocument frame traversal to nsIFrame::List, controlled via an optional
flag.
This commit is contained in:
Chris Lord
2012-09-19 15:36:35 +01:00
parent fd7b46420d
commit 8cbb24d8a8
19 changed files with 74 additions and 24 deletions

View File

@@ -224,7 +224,7 @@ nsLineBox::StateToString(char* aBuf, int32_t aBufSize) const
}
void
nsLineBox::List(FILE* out, int32_t aIndent) const
nsLineBox::List(FILE* out, int32_t aIndent, uint32_t aFlags) const
{
int32_t i;
@@ -254,7 +254,7 @@ nsLineBox::List(FILE* out, int32_t aIndent) const
nsIFrame* frame = mFirstChild;
int32_t n = GetChildCount();
while (--n >= 0) {
frame->List(out, aIndent + 1);
frame->List(out, aIndent + 1, aFlags);
frame = frame->GetNextSibling();
}