зеркало из https://github.com/mozilla/gecko-dev.git
Bug 450990. Build bustage fix
This commit is contained in:
Родитель
f6f6df4601
Коммит
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");
|
||||
|
|
Загрузка…
Ссылка в новой задаче