зеркало из https://github.com/mozilla/gecko-dev.git
Implement ListTag; print out view during listings
This commit is contained in:
Родитель
51129651d4
Коммит
8308f1bd45
|
@ -397,17 +397,28 @@ nsAbsoluteFrame::LastChild(nsIFrame*& aLastChild) const
|
|||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsAbsoluteFrame::ListTag(FILE* out) const
|
||||
{
|
||||
fputs("*absolute", out);
|
||||
PRInt32 contentIndex;
|
||||
GetContentIndex(contentIndex);
|
||||
fprintf(out, "(%d)@%p", contentIndex, this);
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
NS_METHOD nsAbsoluteFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
// Indent
|
||||
for (PRInt32 i = aIndent; --i >= 0; ) fputs(" ", out);
|
||||
|
||||
// Output the tag
|
||||
fputs("*absolute", out);
|
||||
|
||||
PRInt32 contentIndex;
|
||||
GetContentIndex(contentIndex);
|
||||
fprintf(out, "(%d)@%p ", contentIndex, this);
|
||||
ListTag(out);
|
||||
nsIView* view;
|
||||
GetView(view);
|
||||
if (nsnull != view) {
|
||||
fprintf(out, " [view=%p]", view);
|
||||
NS_RELEASE(view);
|
||||
}
|
||||
|
||||
// Output the rect
|
||||
out << mRect;
|
||||
|
|
|
@ -47,6 +47,7 @@ public:
|
|||
const nsReflowState& aReflowState,
|
||||
nsReflowStatus& aStatus);
|
||||
NS_IMETHOD List(FILE* out = stdout, PRInt32 aIndent = 0) const;
|
||||
NS_IMETHOD ListTag(FILE* out = stdout) const;
|
||||
|
||||
protected:
|
||||
nsIFrame* mFrame; // the actual absolutely positioned frame
|
||||
|
|
Загрузка…
Ссылка в новой задаче