Added SetFirstChild; made line layout a friend of block frame

This commit is contained in:
kipp 1998-06-01 23:37:55 +00:00
Родитель c1fb8fca7c
Коммит 9be24b0fac
2 изменённых файлов: 20 добавлений и 4 удалений

Просмотреть файл

@ -221,8 +221,6 @@ public:
nsRect& aDesiredRect,
nsReflowStatus& aStatus);
nsLineData* GetFirstLine();
static nsBlockReflowState* FindBlockReflowState(nsIPresContext* aPresContext,
nsIFrame* aFrame);
@ -292,9 +290,19 @@ protected:
nsresult ReflowUnmapped(nsBlockReflowState& aState);
nsLineData* GetFirstLine();
void SetFirstChild(nsIFrame* aFirstChild) {
if (nsnull == mFirstChild) {
mFirstChild = aFirstChild;
}
}
nsLineData* mLines;
nsVoidArray* mRunInFloaters; // placeholder frames for floaters to display
// at the top line
friend struct nsLineLayout;
};
#endif /* nsBlockFrame_h___ */

Просмотреть файл

@ -221,8 +221,6 @@ public:
nsRect& aDesiredRect,
nsReflowStatus& aStatus);
nsLineData* GetFirstLine();
static nsBlockReflowState* FindBlockReflowState(nsIPresContext* aPresContext,
nsIFrame* aFrame);
@ -292,9 +290,19 @@ protected:
nsresult ReflowUnmapped(nsBlockReflowState& aState);
nsLineData* GetFirstLine();
void SetFirstChild(nsIFrame* aFirstChild) {
if (nsnull == mFirstChild) {
mFirstChild = aFirstChild;
}
}
nsLineData* mLines;
nsVoidArray* mRunInFloaters; // placeholder frames for floaters to display
// at the top line
friend struct nsLineLayout;
};
#endif /* nsBlockFrame_h___ */