From 0a6cd2c8797989504c640dc65cdc003da01382f9 Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Mon, 1 Feb 1999 17:32:19 +0000 Subject: [PATCH] Updated a comment git-svn-id: svn://10.0.0.236/trunk@19173 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsHTMLContainerFrame.h | 10 +++++++++- mozilla/layout/html/base/src/nsHTMLContainerFrame.h | 10 +++++++++- 2 files changed, 18 insertions(+), 2 deletions(-) diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.h b/mozilla/layout/generic/nsHTMLContainerFrame.h index 2c2b8006b37..644b24443c0 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.h +++ b/mozilla/layout/generic/nsHTMLContainerFrame.h @@ -43,13 +43,21 @@ public: // aPlaceholderFrame's sibling pointer is set to what aFrame's // sibling pointer was. It's up to the caller to adjust any previous // sibling pointers. + // XXX bad api - need nsresult in case we attempt to move out of the + // flow and run out of memory PRBool MoveFrameOutOfFlow(nsIPresContext& aPresContext, nsIFrame* aFrame, const nsStyleDisplay* aDisplay, const nsStylePosition* aPosition, nsIFrame*& aPlaceholderFrame); - // Helper method to create next-in-flows if necessary + /** + * Helper method to create next-in-flows if necessary. If aFrame + * already has a next-in-flow then this method does + * nothing. Otherwise, a new continuation frame is created and + * linked into the flow. In addition, the new frame becomes the + * next-sibling of aFrame. + */ static nsresult CreateNextInFlow(nsIPresContext& aPresContext, nsIFrame* aOuterFrame, nsIFrame* aFrame, diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.h b/mozilla/layout/html/base/src/nsHTMLContainerFrame.h index 2c2b8006b37..644b24443c0 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.h +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.h @@ -43,13 +43,21 @@ public: // aPlaceholderFrame's sibling pointer is set to what aFrame's // sibling pointer was. It's up to the caller to adjust any previous // sibling pointers. + // XXX bad api - need nsresult in case we attempt to move out of the + // flow and run out of memory PRBool MoveFrameOutOfFlow(nsIPresContext& aPresContext, nsIFrame* aFrame, const nsStyleDisplay* aDisplay, const nsStylePosition* aPosition, nsIFrame*& aPlaceholderFrame); - // Helper method to create next-in-flows if necessary + /** + * Helper method to create next-in-flows if necessary. If aFrame + * already has a next-in-flow then this method does + * nothing. Otherwise, a new continuation frame is created and + * linked into the flow. In addition, the new frame becomes the + * next-sibling of aFrame. + */ static nsresult CreateNextInFlow(nsIPresContext& aPresContext, nsIFrame* aOuterFrame, nsIFrame* aFrame,