Use nsAutoVoidArray for stack-based nsLineLayout to reduce allocations. r=jag sr=waterson b=90727

This commit is contained in:
dbaron%fas.harvard.edu 2001-07-25 05:20:09 +00:00
parent b4ea38686f
commit ff52e9e58d
2 changed files with 2 additions and 2 deletions

View File

@ -288,7 +288,7 @@ protected:
PRUint8 mPlacedFloaters; PRUint8 mPlacedFloaters;
PRInt32 mTotalPlacedFrames; PRInt32 mTotalPlacedFrames;
nsVoidArray mWordFrames; nsAutoVoidArray mWordFrames;
nscoord mTopEdge; nscoord mTopEdge;
nscoord mBottomEdge; nscoord mBottomEdge;

View File

@ -288,7 +288,7 @@ protected:
PRUint8 mPlacedFloaters; PRUint8 mPlacedFloaters;
PRInt32 mTotalPlacedFrames; PRInt32 mTotalPlacedFrames;
nsVoidArray mWordFrames; nsAutoVoidArray mWordFrames;
nscoord mTopEdge; nscoord mTopEdge;
nscoord mBottomEdge; nscoord mBottomEdge;