if ((nsLayoutAtoms::tableFrame         == aParentType)  || (nsLayoutAtoms::tableRowGroupFrame == aParentType)  || (nsLayoutAtoms::tableRowFrame      == aParentType)) {
if ((aDisplay == NS_STYLE_DISPLAY_TABLE)              || (aDisplay == NS_STYLE_DISPLAY_TABLE_HEADER_GROUP) || (aDisplay == NS_STYLE_DISPLAY_TABLE_ROW_GROUP)    || (aDisplay == NS_STYLE_DISPLAY_TABLE_FOOTER_GROUP) || (aDisplay == NS_STYLE_DISPLAY_TABLE_ROW)) {
IsTableRelated(nsIAtom* aParentType,               PRBool   aIncludeSpecial){  if ((nsLayoutAtoms::tableFrame         == aParentType)  ||      (nsLayoutAtoms::tableRowGroupFrame == aParentType)  ||      (nsLayoutAtoms::tableRowFrame      == aParentType)) {    return PR_TRUE;  }  else if (aIncludeSpecial &&            ((nsLayoutAtoms::tableCaptionFrame  == aParentType)  ||            (nsLayoutAtoms::tableColGroupFrame == aParentType)  ||            (nsLayoutAtoms::tableColFrame      == aParentType)  ||            (nsLayoutAtoms::tableCellFrame     == aParentType))) {    return PR_TRUE;  }  else return PR_FALSE;}