зеркало из https://github.com/mozilla/pjs.git
Added a nicer ListTag method
This commit is contained in:
Родитель
a85dafdfb7
Коммит
f4e68cd5f7
|
@ -66,6 +66,7 @@ public:
|
|||
nsIFrame* aParent,
|
||||
nsIStyleContext* aStyleContext,
|
||||
nsIFrame*& aContinuingFrame);
|
||||
NS_IMETHOD ListTag(FILE* out) const;
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD FindTextRuns(nsLineLayout& aLineLayout);
|
||||
|
@ -1035,3 +1036,18 @@ nsInlineFrame::DrainOverflowLists()
|
|||
mOverflowList = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsInlineFrame::ListTag(FILE* out) const
|
||||
{
|
||||
fprintf(out, "Inline<");
|
||||
nsIAtom* atom;
|
||||
mContent->GetTag(atom);
|
||||
if (nsnull != atom) {
|
||||
nsAutoString tmp;
|
||||
atom->ToString(tmp);
|
||||
fputs(tmp, out);
|
||||
}
|
||||
fprintf(out, ">(%d)@%p", ContentIndexInContainer(this), this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -66,6 +66,7 @@ public:
|
|||
nsIFrame* aParent,
|
||||
nsIStyleContext* aStyleContext,
|
||||
nsIFrame*& aContinuingFrame);
|
||||
NS_IMETHOD ListTag(FILE* out) const;
|
||||
|
||||
// nsIHTMLReflow
|
||||
NS_IMETHOD FindTextRuns(nsLineLayout& aLineLayout);
|
||||
|
@ -1035,3 +1036,18 @@ nsInlineFrame::DrainOverflowLists()
|
|||
mOverflowList = nsnull;
|
||||
}
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsInlineFrame::ListTag(FILE* out) const
|
||||
{
|
||||
fprintf(out, "Inline<");
|
||||
nsIAtom* atom;
|
||||
mContent->GetTag(atom);
|
||||
if (nsnull != atom) {
|
||||
nsAutoString tmp;
|
||||
atom->ToString(tmp);
|
||||
fputs(tmp, out);
|
||||
}
|
||||
fprintf(out, ">(%d)@%p", ContentIndexInContainer(this), this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
Загрузка…
Ссылка в новой задаче