Reduced stack space by using PRPackedBool instead of PRBool
git-svn-id: svn://10.0.0.236/trunk@56709 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
parent
479e2bafda
commit
7daf58d343
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -130,7 +130,7 @@ protected:
|
||||
nsHTMLReflowMetrics mMetrics;
|
||||
nscoord mTopMargin;
|
||||
nsSize mMaxElementSize;
|
||||
PRBool mIsTable;
|
||||
PRPackedBool mIsTable;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
};
|
||||
|
||||
|
||||
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -224,7 +224,7 @@ protected:
|
||||
const nsHTMLReflowState* mBlockReflowState;
|
||||
nsBlockReflowState* mBlockRS;/* XXX hack! */
|
||||
nscoord mMinLineHeight;
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRUint8 mTextAlign;
|
||||
|
||||
// This state varies during the reflow of a line but is line
|
||||
@ -232,18 +232,18 @@ protected:
|
||||
nsIFrame* mFirstLetterFrame;
|
||||
PRInt32 mLineNumber;
|
||||
PRInt32 mColumn;
|
||||
PRBool mEndsInWhiteSpace;
|
||||
PRBool mUnderstandsWhiteSpace;
|
||||
PRBool mTextStartsWithNBSP;
|
||||
PRBool mFirstLetterStyleOK;
|
||||
PRBool mIsTopOfPage;
|
||||
PRBool mUpdatedBand;
|
||||
PRBool mImpactedByFloaters;
|
||||
PRBool mLastFloaterWasLetterFrame;
|
||||
PRBool mCanPlaceFloater;
|
||||
PRBool mKnowStrictMode;
|
||||
PRBool mInStrictMode;
|
||||
PRBool mLineEndsInBR;
|
||||
PRPackedBool mEndsInWhiteSpace;
|
||||
PRPackedBool mUnderstandsWhiteSpace;
|
||||
PRPackedBool mTextStartsWithNBSP;
|
||||
PRPackedBool mFirstLetterStyleOK;
|
||||
PRPackedBool mIsTopOfPage;
|
||||
PRPackedBool mUpdatedBand;
|
||||
PRPackedBool mImpactedByFloaters;
|
||||
PRPackedBool mLastFloaterWasLetterFrame;
|
||||
PRPackedBool mCanPlaceFloater;
|
||||
PRPackedBool mKnowStrictMode;
|
||||
PRPackedBool mInStrictMode;
|
||||
PRPackedBool mLineEndsInBR;
|
||||
PRUint8 mPlacedFloaters;
|
||||
PRInt32 mTotalPlacedFrames;
|
||||
nsVoidArray mWordFrames;
|
||||
@ -292,14 +292,14 @@ protected:
|
||||
nsMargin mMargin;
|
||||
nsMargin mBorderPadding;
|
||||
nsMargin mOffsets;
|
||||
PRBool mRelativePos;
|
||||
PRPackedBool mRelativePos;
|
||||
|
||||
// Other state we use
|
||||
PRUint8 mVerticalAlign;
|
||||
PRBool mIsTextFrame;
|
||||
PRBool mIsNonEmptyTextFrame;
|
||||
PRBool mIsLetterFrame;
|
||||
PRBool mIsSticky;
|
||||
PRPackedBool mIsTextFrame;
|
||||
PRPackedBool mIsNonEmptyTextFrame;
|
||||
PRPackedBool mIsLetterFrame;
|
||||
PRPackedBool mIsSticky;
|
||||
|
||||
PerFrameData* Last() {
|
||||
PerFrameData* pfd = this;
|
||||
@ -326,11 +326,11 @@ public:
|
||||
PerFrameData* mLastFrame;
|
||||
|
||||
const nsHTMLReflowState* mReflowState;
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
PRUint8 mDirection;
|
||||
PRBool mChangedFrameDirection;
|
||||
PRBool mZeroEffectiveSpanBox;
|
||||
PRBool mContainsFloater;
|
||||
PRPackedBool mChangedFrameDirection;
|
||||
PRPackedBool mZeroEffectiveSpanBox;
|
||||
PRPackedBool mContainsFloater;
|
||||
|
||||
nscoord mLeftEdge;
|
||||
nscoord mX;
|
||||
|
||||
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -130,7 +130,7 @@ protected:
|
||||
nsHTMLReflowMetrics mMetrics;
|
||||
nscoord mTopMargin;
|
||||
nsSize mMaxElementSize;
|
||||
PRBool mIsTable;
|
||||
PRPackedBool mIsTable;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
};
|
||||
|
||||
|
||||
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -446,13 +446,10 @@ public:
|
||||
|
||||
nscoord mBottomEdge;
|
||||
|
||||
PRBool mUnconstrainedWidth;
|
||||
|
||||
PRBool mUnconstrainedHeight;
|
||||
|
||||
PRBool mShrinkWrapWidth;
|
||||
|
||||
PRBool mNeedResizeReflow;
|
||||
PRPackedBool mUnconstrainedWidth;
|
||||
PRPackedBool mUnconstrainedHeight;
|
||||
PRPackedBool mShrinkWrapWidth;
|
||||
PRPackedBool mNeedResizeReflow;
|
||||
|
||||
// The content area to reflow child frames within. The x/y
|
||||
// coordinates are known to be mBorderPadding.left and
|
||||
@ -462,13 +459,13 @@ public:
|
||||
nsSize mContentArea;
|
||||
|
||||
// Our wrapping behavior
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
|
||||
// Is this frame a root for top/bottom margin collapsing?
|
||||
PRBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
PRPackedBool mIsTopMarginRoot, mIsBottomMarginRoot;
|
||||
|
||||
// See ShouldApplyTopMargin
|
||||
PRBool mApplyTopMargin;
|
||||
PRPackedBool mApplyTopMargin;
|
||||
|
||||
//----------------------------------------
|
||||
|
||||
@ -541,8 +538,8 @@ public:
|
||||
// being N^2.
|
||||
nsFloaterCacheFreeList mBelowCurrentLineFloaters;
|
||||
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRBool mComputeMaximumWidth;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaximumWidth;
|
||||
|
||||
nsSize mMaxElementSize;
|
||||
nscoord mMaximumWidth;
|
||||
|
||||
@ -224,7 +224,7 @@ protected:
|
||||
const nsHTMLReflowState* mBlockReflowState;
|
||||
nsBlockReflowState* mBlockRS;/* XXX hack! */
|
||||
nscoord mMinLineHeight;
|
||||
PRBool mComputeMaxElementSize;
|
||||
PRPackedBool mComputeMaxElementSize;
|
||||
PRUint8 mTextAlign;
|
||||
|
||||
// This state varies during the reflow of a line but is line
|
||||
@ -232,18 +232,18 @@ protected:
|
||||
nsIFrame* mFirstLetterFrame;
|
||||
PRInt32 mLineNumber;
|
||||
PRInt32 mColumn;
|
||||
PRBool mEndsInWhiteSpace;
|
||||
PRBool mUnderstandsWhiteSpace;
|
||||
PRBool mTextStartsWithNBSP;
|
||||
PRBool mFirstLetterStyleOK;
|
||||
PRBool mIsTopOfPage;
|
||||
PRBool mUpdatedBand;
|
||||
PRBool mImpactedByFloaters;
|
||||
PRBool mLastFloaterWasLetterFrame;
|
||||
PRBool mCanPlaceFloater;
|
||||
PRBool mKnowStrictMode;
|
||||
PRBool mInStrictMode;
|
||||
PRBool mLineEndsInBR;
|
||||
PRPackedBool mEndsInWhiteSpace;
|
||||
PRPackedBool mUnderstandsWhiteSpace;
|
||||
PRPackedBool mTextStartsWithNBSP;
|
||||
PRPackedBool mFirstLetterStyleOK;
|
||||
PRPackedBool mIsTopOfPage;
|
||||
PRPackedBool mUpdatedBand;
|
||||
PRPackedBool mImpactedByFloaters;
|
||||
PRPackedBool mLastFloaterWasLetterFrame;
|
||||
PRPackedBool mCanPlaceFloater;
|
||||
PRPackedBool mKnowStrictMode;
|
||||
PRPackedBool mInStrictMode;
|
||||
PRPackedBool mLineEndsInBR;
|
||||
PRUint8 mPlacedFloaters;
|
||||
PRInt32 mTotalPlacedFrames;
|
||||
nsVoidArray mWordFrames;
|
||||
@ -292,14 +292,14 @@ protected:
|
||||
nsMargin mMargin;
|
||||
nsMargin mBorderPadding;
|
||||
nsMargin mOffsets;
|
||||
PRBool mRelativePos;
|
||||
PRPackedBool mRelativePos;
|
||||
|
||||
// Other state we use
|
||||
PRUint8 mVerticalAlign;
|
||||
PRBool mIsTextFrame;
|
||||
PRBool mIsNonEmptyTextFrame;
|
||||
PRBool mIsLetterFrame;
|
||||
PRBool mIsSticky;
|
||||
PRPackedBool mIsTextFrame;
|
||||
PRPackedBool mIsNonEmptyTextFrame;
|
||||
PRPackedBool mIsLetterFrame;
|
||||
PRPackedBool mIsSticky;
|
||||
|
||||
PerFrameData* Last() {
|
||||
PerFrameData* pfd = this;
|
||||
@ -326,11 +326,11 @@ public:
|
||||
PerFrameData* mLastFrame;
|
||||
|
||||
const nsHTMLReflowState* mReflowState;
|
||||
PRBool mNoWrap;
|
||||
PRPackedBool mNoWrap;
|
||||
PRUint8 mDirection;
|
||||
PRBool mChangedFrameDirection;
|
||||
PRBool mZeroEffectiveSpanBox;
|
||||
PRBool mContainsFloater;
|
||||
PRPackedBool mChangedFrameDirection;
|
||||
PRPackedBool mZeroEffectiveSpanBox;
|
||||
PRPackedBool mContainsFloater;
|
||||
|
||||
nscoord mLeftEdge;
|
||||
nscoord mX;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user