diff --git a/layout/generic/nsPlaceholderFrame.cpp b/layout/generic/nsPlaceholderFrame.cpp index 03e940a0a24..2d1bf1aa7d9 100644 --- a/layout/generic/nsPlaceholderFrame.cpp +++ b/layout/generic/nsPlaceholderFrame.cpp @@ -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; +} diff --git a/layout/generic/nsPlaceholderFrame.h b/layout/generic/nsPlaceholderFrame.h index 07d45630c51..51dbc522786 100644 --- a/layout/generic/nsPlaceholderFrame.h +++ b/layout/generic/nsPlaceholderFrame.h @@ -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; diff --git a/layout/html/base/src/nsPlaceholderFrame.cpp b/layout/html/base/src/nsPlaceholderFrame.cpp index 03e940a0a24..2d1bf1aa7d9 100644 --- a/layout/html/base/src/nsPlaceholderFrame.cpp +++ b/layout/html/base/src/nsPlaceholderFrame.cpp @@ -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; +} diff --git a/layout/html/base/src/nsPlaceholderFrame.h b/layout/html/base/src/nsPlaceholderFrame.h index 07d45630c51..51dbc522786 100644 --- a/layout/html/base/src/nsPlaceholderFrame.h +++ b/layout/html/base/src/nsPlaceholderFrame.h @@ -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;