content->GetDocument(*getter_AddRefs(doc));
content->GetDocument(getter_AddRefs(doc));
BuildFramechangeList(nsIFrame *aFrame, void *aClosure){  nsStyleChangeList *changeList = NS_STATIC_CAST(nsStyleChangeList*, aClosure);  // Ok, get our binding information.  if (!aFrame->GetStyleDisplay()->mBinding.IsEmpty()) {    // We had a binding.    nsCOMPtr<nsIContent> content;    aFrame->GetContent(getter_AddRefs(content));    nsCOMPtr<nsIDocument> doc;    content->GetDocument(*getter_AddRefs(doc));    if (doc) {      nsCOMPtr<nsIBindingManager> bm;      doc->GetBindingManager(getter_AddRefs(bm));      nsCOMPtr<nsIXBLBinding> binding;      bm->GetBinding(content, getter_AddRefs(binding));      PRBool marked = PR_FALSE;      binding->MarkedForDeath(&marked);      if (marked) {        // Add in a change to process, thus ensuring this binding gets rebuilt.        changeList->AppendChange(aFrame, content, NS_STYLE_HINT_FRAMECHANGE);        return PR_FALSE;      }    }  }  return PR_TRUE;}