Made ListTag more usable for all frame types, not just derivations of nsFrame
git-svn-id: svn://10.0.0.236/trunk@16321 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -274,10 +274,14 @@ public:
|
||||
#endif
|
||||
|
||||
void ListTag(FILE* out) const {
|
||||
ListTag(out, this);
|
||||
}
|
||||
|
||||
static void ListTag(FILE* out, const nsIFrame* aFrame) {
|
||||
nsAutoString tmp;
|
||||
GetFrameName(tmp);
|
||||
aFrame->GetFrameName(tmp);
|
||||
fputs(tmp, out);
|
||||
fprintf(out, "@%p", this);
|
||||
fprintf(out, "@%p", aFrame);
|
||||
}
|
||||
|
||||
static void IndentBy(FILE* out, PRInt32 aIndent) {
|
||||
|
||||
@@ -274,10 +274,14 @@ public:
|
||||
#endif
|
||||
|
||||
void ListTag(FILE* out) const {
|
||||
ListTag(out, this);
|
||||
}
|
||||
|
||||
static void ListTag(FILE* out, const nsIFrame* aFrame) {
|
||||
nsAutoString tmp;
|
||||
GetFrameName(tmp);
|
||||
aFrame->GetFrameName(tmp);
|
||||
fputs(tmp, out);
|
||||
fprintf(out, "@%p", this);
|
||||
fprintf(out, "@%p", aFrame);
|
||||
}
|
||||
|
||||
static void IndentBy(FILE* out, PRInt32 aIndent) {
|
||||
|
||||
Reference in New Issue
Block a user