NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsGenericElement::)
nsXULElement::GetNextSibling(nsIDOMNode** aNextSibling) { if (nsnull != mParent) { PRInt32 pos; mParent->IndexOf(NS_STATIC_CAST(nsIStyledContent*, this), pos); if (pos > -1) { nsCOMPtr<nsIContent> next; mParent->ChildAt(++pos, *getter_AddRefs(next)); if (next) { nsresult res = next->QueryInterface(kIDOMNodeIID, (void**) aNextSibling); NS_ASSERTION(NS_OK == res, "not a DOM Node"); return res; } } }    *aNextSibling = nsnull; return NS_OK; }
    NS_FORWARD_NSIDOMNODE_NO_CLONENODE(nsGenericElement::)