From 490a70caa5d57aadc875ea1c21e7fa6121ed0fb1 Mon Sep 17 00:00:00 2001 From: "troy%netscape.com" Date: Thu, 22 Oct 1998 21:02:19 +0000 Subject: [PATCH] Fixed somecomments which had been copied from elsewhere and we not completely accurate git-svn-id: svn://10.0.0.236/trunk@13328 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/layout/generic/nsHTMLContainerFrame.cpp | 7 +++---- mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp | 7 +++---- 2 files changed, 6 insertions(+), 8 deletions(-) diff --git a/mozilla/layout/generic/nsHTMLContainerFrame.cpp b/mozilla/layout/generic/nsHTMLContainerFrame.cpp index 908ca036b1f..8153dc43a25 100644 --- a/mozilla/layout/generic/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/generic/nsHTMLContainerFrame.cpp @@ -215,18 +215,17 @@ nsHTMLContainerFrame::CreateWrapperFrame(nsIPresContext& aPresContext, nsIFrame* aFrame, nsIFrame*& aWrapperFrame) { - // If the floated element can contain children then wrap it in a - // BODY frame before floating it + // If the frame can contain children then wrap it in a BODY frame nsIContent* content; PRBool isContainer; aFrame->GetContent(content); content->CanContainChildren(isContainer); if (isContainer) { - // Wrap the floated element in a BODY frame. + // Wrap the frame in a BODY frame. NS_NewBodyFrame(content, this, aWrapperFrame, NS_BODY_SHRINK_WRAP);/* XXX auto margins? */ - // The body wrapper frame gets the original style context, and the floated + // The body wrapper frame gets the original style context, and the wrapped // frame gets a pseudo style context nsIStyleContext* kidStyle; aFrame->GetStyleContext(&aPresContext, kidStyle); diff --git a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp index 908ca036b1f..8153dc43a25 100644 --- a/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp +++ b/mozilla/layout/html/base/src/nsHTMLContainerFrame.cpp @@ -215,18 +215,17 @@ nsHTMLContainerFrame::CreateWrapperFrame(nsIPresContext& aPresContext, nsIFrame* aFrame, nsIFrame*& aWrapperFrame) { - // If the floated element can contain children then wrap it in a - // BODY frame before floating it + // If the frame can contain children then wrap it in a BODY frame nsIContent* content; PRBool isContainer; aFrame->GetContent(content); content->CanContainChildren(isContainer); if (isContainer) { - // Wrap the floated element in a BODY frame. + // Wrap the frame in a BODY frame. NS_NewBodyFrame(content, this, aWrapperFrame, NS_BODY_SHRINK_WRAP);/* XXX auto margins? */ - // The body wrapper frame gets the original style context, and the floated + // The body wrapper frame gets the original style context, and the wrapped // frame gets a pseudo style context nsIStyleContext* kidStyle; aFrame->GetStyleContext(&aPresContext, kidStyle);