зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset b982a2199355 (bug 1295596) for build bustage. r=backout on a CLOSED TREE
This commit is contained in:
Родитель
bef2aa6909
Коммит
5d422e2b6b
|
@ -612,15 +612,15 @@ double nsIWidget::DefaultScaleOverride()
|
|||
//-------------------------------------------------------------------------
|
||||
void nsBaseWidget::AddChild(nsIWidget* aChild)
|
||||
{
|
||||
NS_ASSERTION(!aChild->GetNextSibling() && !aChild->GetPrevSibling(),
|
||||
"aChild not properly removed from its old child list");
|
||||
MOZ_RELEASE_ASSERT(!aChild->GetNextSibling() && !aChild->GetPrevSibling(),
|
||||
"aChild not properly removed from its old child list");
|
||||
|
||||
if (!mFirstChild) {
|
||||
mFirstChild = mLastChild = aChild;
|
||||
} else {
|
||||
// append to the list
|
||||
NS_ASSERTION(mLastChild);
|
||||
NS_ASSERTION(!mLastChild->GetNextSibling());
|
||||
MOZ_RELEASE_ASSERT(mLastChild);
|
||||
MOZ_RELEASE_ASSERT(!mLastChild->GetNextSibling());
|
||||
mLastChild->SetNextSibling(aChild);
|
||||
aChild->SetPrevSibling(mLastChild);
|
||||
mLastChild = aChild;
|
||||
|
|
Загрузка…
Ссылка в новой задаче