const nsStyleDisplay* display; GetStyleData(eStyleStruct_Display, ((const nsStyleStruct *&)display)); if (display->mOverflow) returnValue = display->mOverflow;
PRInt32 nsHTMLFrameInnerFrame::GetScrolling(nsIContent* aContent, PRBool aStandardMode){  PRInt32 returnValue = -1;  nsresult rv = NS_OK;  nsCOMPtr<nsIHTMLContent> content = do_QueryInterface(mContent, &rv);  if (NS_SUCCEEDED(rv) && content) {    nsHTMLValue value;    if (NS_CONTENT_ATTR_HAS_VALUE == (content->GetHTMLAttribute(nsHTMLAtoms::scrolling, value))) {      if (eHTMLUnit_Enumerated == value.GetUnit()) {        PRInt32 intValue;        intValue = value.GetIntValue();        if (!aStandardMode) {          if ((NS_STYLE_FRAME_ON == intValue) || (NS_STYLE_FRAME_SCROLL == intValue)) {            returnValue = NS_STYLE_OVERFLOW_SCROLL;          } else if ((NS_STYLE_FRAME_OFF == intValue) || (NS_STYLE_FRAME_NOSCROLL == intValue)) {            returnValue = NS_STYLE_OVERFLOW_HIDDEN;          }        } else {          if (NS_STYLE_FRAME_YES == intValue) {            returnValue = NS_STYLE_OVERFLOW_SCROLL;          } else if (NS_STYLE_FRAME_NO == intValue) {            returnValue = NS_STYLE_OVERFLOW_HIDDEN;          } else if (NS_STYLE_FRAME_AUTO == intValue) {            returnValue = NS_STYLE_OVERFLOW_AUTO;          }        }      }          }  }  return returnValue;}