зеркало из https://github.com/mozilla/pjs.git
Implement List method
This commit is contained in:
Родитель
fa151ce5d6
Коммит
2d4f3322e2
|
@ -93,3 +93,23 @@ nsPlaceholderFrame::GetFrameName(nsString& aResult) const
|
|||
{
|
||||
return MakeFrameName("Placeholder", aResult);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
IndentBy(out, aIndent);
|
||||
ListTag(out);
|
||||
nsIView* view;
|
||||
GetView(&view);
|
||||
if (nsnull != view) {
|
||||
fprintf(out, " [view=%p]", view);
|
||||
}
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fprintf(out, " outOfFlowFrame=");
|
||||
nsFrame::ListTag(out, mOutOfFlowFrame);
|
||||
fputs("\n", out);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ public:
|
|||
friend nsresult NS_NewPlaceholderFrame(nsIFrame** aInstancePtrResult);
|
||||
|
||||
// Get/Set the associated out of flow frame
|
||||
nsIFrame* GetOutOfFlowFrame() const {return mOutOfFlowFrame;}
|
||||
void SetOutOfFlowFrame(nsIFrame* aFrame) {mOutOfFlowFrame = aFrame;}
|
||||
nsIFrame* GetOutOfFlowFrame() const {return mOutOfFlowFrame;}
|
||||
void SetOutOfFlowFrame(nsIFrame* aFrame) {mOutOfFlowFrame = aFrame;}
|
||||
|
||||
// nsIHTMLReflow overrides
|
||||
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
|
||||
|
@ -46,6 +46,7 @@ public:
|
|||
nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
nsFramePaintLayer aWhichLayer);
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
|
||||
/**
|
||||
* Get the "type" of the frame
|
||||
|
@ -54,7 +55,7 @@ public:
|
|||
*/
|
||||
NS_IMETHOD GetFrameType(nsIAtom** aType) const;
|
||||
|
||||
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
||||
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
||||
|
||||
protected:
|
||||
nsIFrame* mOutOfFlowFrame;
|
||||
|
|
|
@ -93,3 +93,23 @@ nsPlaceholderFrame::GetFrameName(nsString& aResult) const
|
|||
{
|
||||
return MakeFrameName("Placeholder", aResult);
|
||||
}
|
||||
|
||||
NS_IMETHODIMP
|
||||
nsPlaceholderFrame::List(FILE* out, PRInt32 aIndent) const
|
||||
{
|
||||
IndentBy(out, aIndent);
|
||||
ListTag(out);
|
||||
nsIView* view;
|
||||
GetView(&view);
|
||||
if (nsnull != view) {
|
||||
fprintf(out, " [view=%p]", view);
|
||||
}
|
||||
fprintf(out, " {%d,%d,%d,%d}", mRect.x, mRect.y, mRect.width, mRect.height);
|
||||
if (0 != mState) {
|
||||
fprintf(out, " [state=%08x]", mState);
|
||||
}
|
||||
fprintf(out, " outOfFlowFrame=");
|
||||
nsFrame::ListTag(out, mOutOfFlowFrame);
|
||||
fputs("\n", out);
|
||||
return NS_OK;
|
||||
}
|
||||
|
|
|
@ -32,8 +32,8 @@ public:
|
|||
friend nsresult NS_NewPlaceholderFrame(nsIFrame** aInstancePtrResult);
|
||||
|
||||
// Get/Set the associated out of flow frame
|
||||
nsIFrame* GetOutOfFlowFrame() const {return mOutOfFlowFrame;}
|
||||
void SetOutOfFlowFrame(nsIFrame* aFrame) {mOutOfFlowFrame = aFrame;}
|
||||
nsIFrame* GetOutOfFlowFrame() const {return mOutOfFlowFrame;}
|
||||
void SetOutOfFlowFrame(nsIFrame* aFrame) {mOutOfFlowFrame = aFrame;}
|
||||
|
||||
// nsIHTMLReflow overrides
|
||||
NS_IMETHOD Reflow(nsIPresContext& aPresContext,
|
||||
|
@ -46,6 +46,7 @@ public:
|
|||
nsIRenderingContext& aRenderingContext,
|
||||
const nsRect& aDirtyRect,
|
||||
nsFramePaintLayer aWhichLayer);
|
||||
NS_IMETHOD List(FILE* out, PRInt32 aIndent) const;
|
||||
|
||||
/**
|
||||
* Get the "type" of the frame
|
||||
|
@ -54,7 +55,7 @@ public:
|
|||
*/
|
||||
NS_IMETHOD GetFrameType(nsIAtom** aType) const;
|
||||
|
||||
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
||||
NS_IMETHOD GetFrameName(nsString& aResult) const;
|
||||
|
||||
protected:
|
||||
nsIFrame* mOutOfFlowFrame;
|
||||
|
|
Загрузка…
Ссылка в новой задаче