This commit is contained in:
Boris Zbarsky 2008-10-10 14:29:13 -04:00
Родитель f6f6df4601
Коммит dee8ae689a
1 изменённых файлов: 0 добавлений и 28 удалений

Просмотреть файл

@ -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");