nsIFrame* parentFrame; frame->GetParent(&parentFrame);
nsIFrame* parentFrame = frame->GetParent();
UseHTMLReflowConstraints(nsBoxToBlockAdaptor* aAdaptor, nsBoxLayoutState& aState) {  nsSize constrainedSize;  aState.GetScrolledBlockSizeConstraint(constrainedSize);  if (constrainedSize.width < 0 || constrainedSize.height < 0) {    return PR_FALSE;  }  nsIFrame* frame;  aAdaptor->GetFrame(&frame);  if (!frame) {    return PR_FALSE;  }  nsIFrame* parentFrame;  frame->GetParent(&parentFrame);  if (!parentFrame) {    return PR_FALSE;  }  nsCOMPtr<nsIAtom> parentFrameType;  parentFrame->GetFrameType(getter_AddRefs(parentFrameType));  if (!parentFrameType || parentFrameType != nsLayoutAtoms::scrollFrame) {    return PR_FALSE;  }  return PR_TRUE;}