зеркало из https://github.com/mozilla/gecko-dev.git
Made ListTag more usable for all frame types, not just derivations of nsFrame
This commit is contained in:
Родитель
398462eb7a
Коммит
a475e77dd2
|
@ -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) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче