mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-12 04:45:45 +00:00
Bug 450990. Build bustage fix
This commit is contained in:
parent
f6f6df4601
commit
dee8ae689a
@ -786,13 +786,6 @@ nsNSElementTearoff::GetFirstElementChild(nsIDOMElement** aResult)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
nsXULElement* xul = nsXULElement::FromContent(mContent);
|
||||
if (xul) {
|
||||
xul->EnsureContentsGenerated();
|
||||
}
|
||||
#endif
|
||||
|
||||
nsAttrAndChildArray& children = mContent->mAttrsAndChildren;
|
||||
PRUint32 i, count = children.ChildCount();
|
||||
for (i = 0; i < count; ++i) {
|
||||
@ -810,13 +803,6 @@ nsNSElementTearoff::GetLastElementChild(nsIDOMElement** aResult)
|
||||
{
|
||||
*aResult = nsnull;
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
nsXULElement* xul = nsXULElement::FromContent(mContent);
|
||||
if (xul) {
|
||||
xul->EnsureContentsGenerated();
|
||||
}
|
||||
#endif
|
||||
|
||||
nsAttrAndChildArray& children = mContent->mAttrsAndChildren;
|
||||
PRUint32 i = children.ChildCount();
|
||||
while (i > 0) {
|
||||
@ -839,13 +825,6 @@ nsNSElementTearoff::GetPreviousElementSibling(nsIDOMElement** aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
nsXULElement* xul = nsXULElement::FromContent(parent);
|
||||
if (xul) {
|
||||
xul->EnsureContentsGenerated();
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) ||
|
||||
parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT),
|
||||
"Parent content must be an element or a doc fragment");
|
||||
@ -878,13 +857,6 @@ nsNSElementTearoff::GetNextElementSibling(nsIDOMElement** aResult)
|
||||
return NS_OK;
|
||||
}
|
||||
|
||||
#ifdef MOZ_XUL
|
||||
nsXULElement* xul = nsXULElement::FromContent(parent);
|
||||
if (xul) {
|
||||
xul->EnsureContentsGenerated();
|
||||
}
|
||||
#endif
|
||||
|
||||
NS_ASSERTION(parent->IsNodeOfType(nsINode::eELEMENT) ||
|
||||
parent->IsNodeOfType(nsINode::eDOCUMENT_FRAGMENT),
|
||||
"Parent content must be an element or a doc fragment");
|
||||
|
Loading…
Reference in New Issue
Block a user