nsCOMPtr<nsIContent> binding = mPrototypeBinding->GetBindingElement();
nsXBLBinding::GetImmediateChild(nsIAtom* aTag, nsIContent** aResult) {  nsCOMPtr<nsIContent> binding = mPrototypeBinding->GetBindingElement();  *aResult = nsnull;  PRUint32 childCount = binding->GetChildCount();  for (PRUint32 i = 0; i < childCount; i++) {    nsIContent *child = binding->GetChildAt(i);    if (aTag == child->Tag()) {      *aResult = child;      NS_ADDREF(*aResult);      return;    }  }}