const nsStylePosition* stylePosition; aFrame->GetStyleData(eStyleStruct_Position, (const nsStyleStruct*&)stylePosition); const nsStyleDisplay* styleDisplay; aFrame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)styleDisplay); return DetermineFrameType(aFrame, stylePosition, styleDisplay);
nsIAtom* tag = nsnull; nsIContent* content; if ((NS_OK == frame->GetContent(content)) && (nsnull != content)) { content->GetTag(tag); NS_RELEASE(content); }    const nsStyleDisplay* display; frame->GetStyleData(eStyleStruct_Display, (const nsStyleStruct*&)display); const nsStylePosition* pos; frame->GetStyleData(eStyleStruct_Position, (const nsStyleStruct*&)pos); if (pos->IsAbsolutelyPositioned()) { frameType = NS_CSS_FRAME_TYPE_ABSOLUTE; } else if (NS_STYLE_FLOAT_NONE != display->mFloats) { frameType = NS_CSS_FRAME_TYPE_FLOATING; } else { switch (display->mDisplay) { case NS_STYLE_DISPLAY_BLOCK: case NS_STYLE_DISPLAY_LIST_ITEM: case NS_STYLE_DISPLAY_TABLE: frameType = NS_CSS_FRAME_TYPE_BLOCK; break;  case NS_STYLE_DISPLAY_INLINE: case NS_STYLE_DISPLAY_MARKER: case NS_STYLE_DISPLAY_INLINE_TABLE: frameType = NS_CSS_FRAME_TYPE_INLINE; break;  case NS_STYLE_DISPLAY_RUN_IN: case NS_STYLE_DISPLAY_COMPACT:  frameType = NS_CSS_FRAME_TYPE_BLOCK; break;  case NS_STYLE_DISPLAY_TABLE_CELL: case NS_STYLE_DISPLAY_TABLE_CAPTION: case NS_STYLE_DISPLAY_TABLE_ROW_GROUP: case NS_STYLE_DISPLAY_TABLE_COLUMN: case NS_STYLE_DISPLAY_TABLE_COLUMN_GROUP: case NS_STYLE_DISPLAY_TABLE_HEADER_GROUP: case NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP: case NS_STYLE_DISPLAY_TABLE_ROW: frameType = NS_CSS_FRAME_TYPE_INTERNAL_TABLE; break;  case NS_STYLE_DISPLAY_NONE: default: frameType = NS_CSS_FRAME_TYPE_UNKNOWN; break; } }  if (IsReplaced(tag)) { frameType = NS_FRAME_REPLACED(frameType); } NS_IF_RELEASE(tag);
nsHTMLReflowState::DetermineFrameType(nsIFrame* aFrame){  const nsStylePosition* stylePosition;  aFrame->GetStyleData(eStyleStruct_Position,                       (const nsStyleStruct*&)stylePosition);  const nsStyleDisplay* styleDisplay;  aFrame->GetStyleData(eStyleStruct_Display,                       (const nsStyleStruct*&)styleDisplay);  return DetermineFrameType(aFrame, stylePosition, styleDisplay);}