зеркало из https://github.com/mozilla/pjs.git
Assert if someone calls frame->SetNextSibling(frame), since that creates a
looped linked list. Bug 266332, patch by timeless, r+sr=bzbarsky
This commit is contained in:
Родитель
d2dc4d365b
Коммит
9854e1bfb4
|
@ -695,7 +695,10 @@ public:
|
|||
* Child frames are linked together in a singly-linked list
|
||||
*/
|
||||
nsIFrame* GetNextSibling() const { return mNextSibling; }
|
||||
void SetNextSibling(nsIFrame* aNextSibling) { mNextSibling = aNextSibling; }
|
||||
void SetNextSibling(nsIFrame* aNextSibling) {
|
||||
NS_ASSERTION(this != aNextSibling, "Creating a circular frame list, this is very bad.");
|
||||
mNextSibling = aNextSibling;
|
||||
}
|
||||
|
||||
/**
|
||||
* Paint is responsible for painting the frame. The aWhichLayer
|
||||
|
|
|
@ -695,7 +695,10 @@ public:
|
|||
* Child frames are linked together in a singly-linked list
|
||||
*/
|
||||
nsIFrame* GetNextSibling() const { return mNextSibling; }
|
||||
void SetNextSibling(nsIFrame* aNextSibling) { mNextSibling = aNextSibling; }
|
||||
void SetNextSibling(nsIFrame* aNextSibling) {
|
||||
NS_ASSERTION(this != aNextSibling, "Creating a circular frame list, this is very bad.");
|
||||
mNextSibling = aNextSibling;
|
||||
}
|
||||
|
||||
/**
|
||||
* Paint is responsible for painting the frame. The aWhichLayer
|
||||
|
|
Загрузка…
Ссылка в новой задаче