frame->FirstChild(aPO->mParent->mPresContext, nsnull, &frame);
frame = frame->GetFirstChild(nsnull);
static void GetIFramePosition(nsPrintObject * aPO, nscoord& aX, nscoord& aY){  if (aPO->mParent != nsnull) {    nsCOMPtr<nsIFrameManager> frameMan;    // we would not have gotten here if any of these ptrs were null    aPO->mParent->mPresShell->GetFrameManager(getter_AddRefs(frameMan));    NS_ASSERTION(frameMan, "No Frame manager!");    if (frameMan) {      // This gets out HTMLIFrame      nsIFrame* frame;      frameMan->GetPrimaryFrameFor(aPO->mContent, &frame);      if (frame) {        // This gets the "inner" frame,         // and then traverse out ot the pageContentFrame        frame->FirstChild(aPO->mParent->mPresContext, nsnull, &frame);        while (frame) {          nsPoint pt = frame->GetPosition();          aX += pt.x;          aY += pt.y;          if (nsLayoutAtoms::pageContentFrame == frame->GetType()) {            break;          }          frame = frame->GetParent();        }      }    }  }}