if (nsnull != anchoredItems) { anchoredItems->AddAnchoredItem(aFloater, nsIAnchoredItems::anHTMLFloater, this); PlaceFloater(aCX, aFloater, aPlaceholder); return PR_TRUE;
PRBool isLeftFloater; nscoord ox, oy; mSpaceManager->GetTranslation(ox, oy); nscoord dx = ox - mSpaceManagerX; nscoord dy = oy - mSpaceManagerY; mSpaceManager->Translate(-dx, -dy); PlaceFloater(aPlaceholder, isLeftFloater);   GetAvailableSpace(); mLineLayout.UpdateInlines(mCurrentBand.availSpace.x + mBorderPadding.left, mY, mCurrentBand.availSpace.width, mCurrentBand.availSpace.height, isLeftFloater);   mSpaceManager->Translate(dx, dy);
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;}