зеркало из https://github.com/mozilla/pjs.git
Removed mChildCount member data
This commit is contained in:
Родитель
c3fc0b9164
Коммит
7fc5ecd18a
|
@ -990,31 +990,4 @@ nsBodyFrame::List(FILE* out, PRInt32 aIndent, nsIListFilter* aFilter) const
|
|||
return rv;
|
||||
}
|
||||
|
||||
NS_METHOD nsBodyFrame::VerifyTree() const
|
||||
{
|
||||
#ifdef NS_DEBUG
|
||||
NS_ASSERTION(0 == (mState & NS_FRAME_IN_REFLOW), "frame is in reflow");
|
||||
|
||||
// Check our child count
|
||||
PRInt32 len = LengthOf(mFirstChild);
|
||||
NS_ASSERTION(len == mChildCount, "bad child count");
|
||||
nsIFrame* lastChild = LastFrame(mFirstChild);
|
||||
|
||||
if (len != 0) {
|
||||
NS_ASSERTION(nsnull != lastChild, "bad last child");
|
||||
}
|
||||
NS_ASSERTION(nsnull == mOverflowList, "bad overflow list");
|
||||
|
||||
// Verify the child's tree is valid
|
||||
nsIFrame* child = mFirstChild;
|
||||
while (nsnull != child) {
|
||||
// Make sure that the child's tree is valid
|
||||
child->VerifyTree();
|
||||
child->GetNextSibling(child);
|
||||
}
|
||||
|
||||
#endif
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,8 +72,6 @@ public:
|
|||
NS_IMETHOD AddAbsoluteItem(nsAbsoluteFrame* aAnchorFrame);
|
||||
NS_IMETHOD RemoveAbsoluteItem(nsAbsoluteFrame* aAnchorFrame);
|
||||
|
||||
NS_IMETHOD VerifyTree() const;
|
||||
|
||||
protected:
|
||||
PRUint32 mFlags;
|
||||
static nsIAtom* gAbsoluteAtom;
|
||||
|
@ -106,7 +104,6 @@ private:
|
|||
nsSpaceManager* mSpaceManager;
|
||||
nsVoidArray mAbsoluteItems;
|
||||
nsIFrame* mAbsoluteFrames; // additional named child list
|
||||
PRInt32 mChildCount;
|
||||
|
||||
#ifdef NS_DEBUG
|
||||
struct BandData : public nsBandData {
|
||||
|
|
Загрузка…
Ссылка в новой задаче