Replace computation of max-element-size (height and width) with max-element-width alone, since the max-element-height is practically unused and not meaningful for layout. b=186953 r+sr=bzbarsky

This commit is contained in:
dbaron@dbaron.org
2003-01-09 14:26:32 +00:00
parent e26531a108
commit 1c37d177d4
115 changed files with 1120 additions and 1524 deletions

View File

@@ -48,7 +48,7 @@ public:
nsLineLayout(nsIPresContext* aPresContext,
nsSpaceManager* aSpaceManager,
const nsHTMLReflowState* aOuterReflowState,
PRBool aComputeMaxElementSize);
PRBool aComputeMaxElementWidth);
~nsLineLayout();
void Init(nsBlockReflowState* aState, nscoord aMinLineHeight,
@@ -87,7 +87,7 @@ public:
nscoord aRightEdge);
void EndSpan(nsIFrame* aFrame, nsSize& aSizeResult,
nsSize* aMaxElementSize);
nscoord* aMaxElementWidth);
PRInt32 GetCurrentSpanCount() const;
@@ -110,7 +110,7 @@ public:
}
void VerticalAlignLine(nsLineBox* aLineBox,
nsSize& aMaxElementSizeResult);
nscoord* aMaxElementWidthResult);
PRBool TrimTrailingWhiteSpace();
@@ -278,7 +278,7 @@ protected:
nsBlockReflowState* mBlockRS;/* XXX hack! */
nsCompatibility mCompatMode;
nscoord mMinLineHeight;
PRPackedBool mComputeMaxElementSize;
PRPackedBool mComputeMaxElementWidth;
PRUint8 mTextAlign;
PRUint8 mPlacedFloaters;
@@ -333,7 +333,7 @@ protected:
// From metrics
nscoord mAscent, mDescent;
nsRect mBounds;
nsSize mMaxElementSize;
nscoord mMaxElementWidth;
nsRect mCombinedArea;
// From reflow-state