nsIFrame*          frame = mCurrentState->spaceManager->GetFrame(); nsIAnchoredItems*  anchoredItems = nsnull;
NS_ASSERTION(nsnull != mCurrentLine, "null ptr"); if (nsnull == mCurrentLine->mFloaters) { mCurrentLine->mFloaters = new nsVoidArray(); } mCurrentLine->mFloaters->AppendElement(aPlaceholder);
PRBool nsBlockFrame::AddFloater(nsIPresContext* aCX,                                nsIFrame* aFloater,                                PlaceholderFrame* aPlaceholder){  // Get the frame associated with the space manager, and get its nsIAnchoredItems  // interface  nsIFrame*          frame = mCurrentState->spaceManager->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);    PlaceFloater(aCX, aFloater, aPlaceholder);    return PR_TRUE;  }  return PR_FALSE;}