return (frameType == nsLayoutAtoms::canvasFrame || frameType == nsLayoutAtoms::rootFrame || frameType == nsLayoutAtoms::pageFrame);
if (frameType == nsLayoutAtoms::canvasFrame || frameType == nsLayoutAtoms::rootFrame || frameType == nsLayoutAtoms::pageFrame) { return aFrame; } else if (frameType == nsLayoutAtoms::viewportFrame) { nsIFrame* firstChild; aFrame->FirstChild(aPresContext, nsnull, &firstChild); if (firstChild) { return firstChild; } }  return nsnull;
IsCanvasFrame(nsIFrame *aFrame){  nsCOMPtr<nsIAtom> frameType;  aFrame->GetFrameType(getter_AddRefs(frameType));  return (frameType == nsLayoutAtoms::canvasFrame ||          frameType == nsLayoutAtoms::rootFrame ||          frameType == nsLayoutAtoms::pageFrame);}