Bug 450990. Build bustage fix

This commit is contained in:
Boris Zbarsky 2008-10-10 14:29:13 -04:00
parent f6f6df4601
commit dee8ae689a

View File

@ -786,13 +786,6 @@ nsNSElementTearoff::GetFirstElementChild(nsIDOMElement** aResult)
{ {
*aResult = nsnull; *aResult = nsnull;
#ifdef MOZ_XUL
nsXULElement* xul = nsXULElement::FromContent(mContent);
if (xul) {
xul->EnsureContentsGenerated();
}
#endif
nsAttrAndChildArray& children = mContent->mAttrsAndChildren; nsAttrAndChildArray& children = mContent->mAttrsAndChildren;
PRUint32 i, count = children.ChildCount(); PRUint32 i, count = children.ChildCount();
for (i = 0; i < count; ++i) { for (i = 0; i < count; ++i) {
@ -810,13 +803,6 @@ nsNSElementTearoff::GetLastElementChild(nsIDOMElement** aResult)
{ {
*aResult = nsnull; *aResult = nsnull;
#ifdef MOZ_XUL
nsXULElement* xul = nsXULElement::FromContent(mContent);
if (xul) {
xul->EnsureContentsGenerated();
}
#endif
nsAttrAndChildArray& children = mContent->mAttrsAndChildren; nsAttrAndChildArray& children = mContent->mAttrsAndChildren;
PRUint32 i = children.ChildCount(); PRUint32 i = children.ChildCount();
while (i > 0) { while (i > 0) {
@ -839,13 +825,6 @@ nsNSElementTearoff::GetPreviousElementSibling(nsIDOMElement** aResult)
return NS_OK; return NS_OK;
} }
#ifdef MOZ_XUL
nsXULElement* xul = nsXULElement::FromContent(parent);
if (xul) {
xul->EnsureContentsGenerated();
}
#endif
NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) || NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) ||
parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT), parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT),
"Parent content must be an element or a doc fragment"); "Parent content must be an element or a doc fragment");
@ -878,13 +857,6 @@ nsNSElementTearoff::GetNextElementSibling(nsIDOMElement** aResult)
return NS_OK; return NS_OK;
} }
#ifdef MOZ_XUL
nsXULElement* xul = nsXULElement::FromContent(parent);
if (xul) {
xul->EnsureContentsGenerated();
}
#endif
NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) || NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) ||
parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT), parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT),
"Parent content must be an element or a doc fragment"); "Parent content must be an element or a doc fragment");