static nsIFrame* GetRealFrame(nsIFrame* aFrame)
GetRealFrame(nsIFrame* aFrame)
static nsIFrame* GetRealFrame(nsIFrame* aFrame){  nsIFrame* result = aFrame;  // We may be a placeholder.  If we are, go to the real frame.  nsCOMPtr<nsIAtom>  frameType;    // See if it's a placeholder frame for a floater.  aFrame->GetFrameType(getter_AddRefs(frameType));  PRBool isPlaceholder = (nsLayoutAtoms::placeholderFrame == frameType.get());  if (isPlaceholder) {    // Get the out-of-flow frame that the placeholder points to.    // This is the real floater that we should examine.    result = NS_STATIC_CAST(nsPlaceholderFrame*,aFrame)->GetOutOfFlowFrame();    NS_ASSERTION(result, "No out of flow frame found for placeholder!\n");  }    return result;}