зеркало из https://github.com/mozilla/pjs.git
Added some comments :-)
This commit is contained in:
Родитель
b8595001e8
Коммит
ffa23c4d03
|
@ -48,14 +48,24 @@ public:
|
||||||
|
|
||||||
void AppendFrames(nsIFrame* aParent, nsFrameList& aFrameList) {
|
void AppendFrames(nsIFrame* aParent, nsFrameList& aFrameList) {
|
||||||
AppendFrames(aParent, aFrameList.mFirstChild);
|
AppendFrames(aParent, aFrameList.mFirstChild);
|
||||||
|
aFrameList.mFirstChild = nsnull;
|
||||||
}
|
}
|
||||||
|
|
||||||
void AppendFrame(nsIFrame* aParent, nsIFrame* aFrame);
|
void AppendFrame(nsIFrame* aParent, nsIFrame* aFrame);
|
||||||
|
|
||||||
|
// Take aFrame out of the frame list. This also disconnects aFrame
|
||||||
|
// from the sibling list. This will return PR_FALSE if aFrame is
|
||||||
|
// nsnull or if aFrame is not in the list.
|
||||||
PRBool RemoveFrame(nsIFrame* aFrame);
|
PRBool RemoveFrame(nsIFrame* aFrame);
|
||||||
|
|
||||||
|
// Remove the first child from the list. The caller is assumed to be
|
||||||
|
// holding a reference to the first child. This call is equivalent
|
||||||
|
// in behavior to calling RemoveFrame(FirstChild()).
|
||||||
PRBool RemoveFirstChild();
|
PRBool RemoveFirstChild();
|
||||||
|
|
||||||
|
// Take aFrame out of the frame list and then delete it. This also
|
||||||
|
// disconnects aFrame from the sibling list. This will return
|
||||||
|
// PR_FALSE if aFrame is nsnull or if aFrame is not in the list.
|
||||||
PRBool DeleteFrame(nsIPresContext& aPresContext, nsIFrame* aFrame);
|
PRBool DeleteFrame(nsIPresContext& aPresContext, nsIFrame* aFrame);
|
||||||
|
|
||||||
void InsertFrame(nsIFrame* aParent,
|
void InsertFrame(nsIFrame* aParent,
|
||||||
|
@ -66,6 +76,12 @@ public:
|
||||||
nsIFrame* aPrevSibling,
|
nsIFrame* aPrevSibling,
|
||||||
nsIFrame* aFrameList);
|
nsIFrame* aFrameList);
|
||||||
|
|
||||||
|
void InsertFrames(nsIFrame* aParent, nsIFrame* aPrevSibling,
|
||||||
|
nsFrameList& aFrameList) {
|
||||||
|
InsertFrames(aParent, aPrevSibling, aFrameList.FirstChild());
|
||||||
|
aFrameList.mFirstChild = nsnull;
|
||||||
|
}
|
||||||
|
|
||||||
PRBool ReplaceFrame(nsIFrame* aParent,
|
PRBool ReplaceFrame(nsIFrame* aParent,
|
||||||
nsIFrame* aOldFrame,
|
nsIFrame* aOldFrame,
|
||||||
nsIFrame* aNewFrame);
|
nsIFrame* aNewFrame);
|
||||||
|
@ -77,9 +93,9 @@ public:
|
||||||
|
|
||||||
PRBool Split(nsIFrame* aAfterFrame, nsIFrame** aNextFrameResult);
|
PRBool Split(nsIFrame* aAfterFrame, nsIFrame** aNextFrameResult);
|
||||||
|
|
||||||
PRBool PullFrame(nsIFrame* aParent,
|
nsIFrame* PullFrame(nsIFrame* aParent,
|
||||||
nsFrameList& aFromList,
|
nsIFrame* aLastChild,
|
||||||
nsIFrame** aResult);
|
nsFrameList& aFromList);
|
||||||
|
|
||||||
void Join(nsIFrame* aParent, nsFrameList& aList) {
|
void Join(nsIFrame* aParent, nsFrameList& aList) {
|
||||||
AppendFrames(aParent, aList.mFirstChild);
|
AppendFrames(aParent, aList.mFirstChild);
|
||||||
|
@ -108,6 +124,8 @@ public:
|
||||||
|
|
||||||
nsIFrame* GetPrevSiblingFor(nsIFrame* aFrame) const;
|
nsIFrame* GetPrevSiblingFor(nsIFrame* aFrame) const;
|
||||||
|
|
||||||
|
void VerifyParent(nsIFrame* aParent) const;
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
nsIFrame* mFirstChild;
|
nsIFrame* mFirstChild;
|
||||||
};
|
};
|
||||||
|
|
Загрузка…
Ссылка в новой задаче