Shrink down size of nsLineLayout object

git-svn-id: svn://10.0.0.236/trunk@44927 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
kipp%netscape.com
1999-08-27 21:49:12 +00:00
parent 9d4d59aea1
commit 6d797d3be3
2 changed files with 10 additions and 28 deletions

View File

@@ -28,16 +28,8 @@ class nsBlockReflowState;
class nsPlaceholderFrame;
struct nsStyleText;
// If your machine has a limited size stack, you'll want to adjust
// these numbers. Note that it will force the line layout code to use
// the heap more so layout will be slower!
#if defined(XP_MAC)
#define NS_LINELAYOUT_NUM_FRAMES 15
#define NS_LINELAYOUT_NUM_FRAMES 10
#define NS_LINELAYOUT_NUM_SPANS 5
#else
#define NS_LINELAYOUT_NUM_FRAMES 50
#define NS_LINELAYOUT_NUM_SPANS 20
#endif
class nsLineLayout {
public:
@@ -48,8 +40,11 @@ public:
nsLineLayout(nsIPresContext& aPresContext);
~nsLineLayout();
void Init(nsBlockReflowState* aState) {
void Init(nsBlockReflowState* aState, nscoord aMinLineHeight,
PRInt32 aLineNumber) {
mBlockRS = aState;
mMinLineHeight = aMinLineHeight;
mLineNumber = aLineNumber;
}
PRInt32 GetColumn() {
@@ -59,10 +54,6 @@ public:
void SetColumn(PRInt32 aNewColumn) {
mColumn = aNewColumn;
}
void AdvanceToNextLine() {
mLineNumber++;
}
PRInt32 GetLineNumber() const {
return mLineNumber;