From 5d7071908f04ea5c9ca2e76bd33037dcb49740de Mon Sep 17 00:00:00 2001 From: "kipp%netscape.com" Date: Fri, 5 Mar 1999 19:24:15 +0000 Subject: [PATCH] Disable trim code for now; disable horizontal alignment during pass1 table reflow --- layout/html/base/src/nsInlineReflow.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/layout/html/base/src/nsInlineReflow.cpp b/layout/html/base/src/nsInlineReflow.cpp index a07ca8747d11..f1877a205451 100644 --- a/layout/html/base/src/nsInlineReflow.cpp +++ b/layout/html/base/src/nsInlineReflow.cpp @@ -634,6 +634,7 @@ nsInlineReflow::IsZeroHeight() const // frame that is wrapping an anonymous block that none of the // alignment routines are used. +// XXX avoid during pass1 table reflow void nsInlineReflow::VerticalAlignFrames(nsRect& aLineBox, nscoord& aMaxAscent, @@ -967,6 +968,7 @@ nsInlineReflow::VerticalAlignFrames(nsRect& aLineBox, void nsInlineReflow::TrimTrailingWhiteSpace(nsRect& aLineBox) { +#if XXX_still_do_this nscoord deltaWidth; PerFrameData* pfd = mFrameDataBase + (mFrameNum - 1); if (pfd->mBounds.width > 0) { @@ -980,11 +982,17 @@ nsInlineReflow::TrimTrailingWhiteSpace(nsRect& aLineBox) pfd->mBounds.width -= deltaWidth; } } +#endif } void nsInlineReflow::HorizontalAlignFrames(nsRect& aLineBox, PRBool aAllowJustify) { + if (NS_UNCONSTRAINEDSIZE == mRightEdge) { + // Don't bother + return; + } + nscoord maxWidth = mRightEdge - mLeftEdge; if (aLineBox.width < maxWidth) { nscoord dx = 0; @@ -1038,6 +1046,7 @@ nsInlineReflow::HorizontalAlignFrames(nsRect& aLineBox, PRBool aAllowJustify) } } +// XXX avoid during pass1 table reflow void nsInlineReflow::RelativePositionFrames(nsRect& aCombinedArea) {