nsIFrame* frame = state->mSpaceManager->GetFrame(); nsIAnchoredItems* anchoredItems = nsnull;  frame->QueryInterface(kIAnchoredItemsIID, (void**)&anchoredItems); NS_ASSERTION(nsnull != anchoredItems, "no anchored items interface"); if (nsnull != anchoredItems) { anchoredItems->AddAnchoredItem(aFloater, nsIAnchoredItems::anHTMLFloater, this);    ReflowFloater(*aPresContext, *state, aFloater); return PR_TRUE; }  return PR_FALSE;
ReflowFloater(*aPresContext, *state, aFloater); return PR_TRUE;
nsBlockFrame::AddFloater(nsIPresContext* aPresContext,                         const nsHTMLReflowState& aReflowState,                         nsIFrame* aFloater,                         nsPlaceholderFrame* aPlaceholder){  // Walk up reflow state chain, looking for ourself  const nsReflowState* rs = &aReflowState;  while (nsnull != rs) {    if (rs->frame == this) {      break;    }    rs = rs->parentReflowState;  }  if (nsnull == rs) {    // Never mind    return PR_FALSE;  }  nsBlockReflowState* state = (nsBlockReflowState*) rs;  // Get the frame associated with the space manager, and get its  // nsIAnchoredItems interface  nsIFrame* frame = state->mSpaceManager->GetFrame();  nsIAnchoredItems* anchoredItems = nsnull;  frame->QueryInterface(kIAnchoredItemsIID, (void**)&anchoredItems);  NS_ASSERTION(nsnull != anchoredItems, "no anchored items interface");  if (nsnull != anchoredItems) {    anchoredItems->AddAnchoredItem(aFloater,                                   nsIAnchoredItems::anHTMLFloater,                                   this);    // Reflow the floater (the first time we do it here; later on it's    // done during the reflow of the line that contains the floater)    ReflowFloater(*aPresContext, *state, aFloater);    return PR_TRUE;  }  return PR_FALSE;}