NS_RELEASE(content); return nsScrollPreference_kAlwaysScroll; } else if (NS_STYLE_FRAME_NO == intValue) { NS_RELEASE(content); return nsScrollPreference_kNeverScroll;
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;
nsScrollPreference nsHTMLFrameInnerFrame::GetScrolling(nsIContent* aContent, PRBool aStandardMode){  nsIHTMLContent* content = nsnull;  aContent->QueryInterface(kIHTMLContentIID, (void**) &content);  if (nsnull != content) {    nsHTMLValue value;    if (NS_CONTENT_ATTR_HAS_VALUE == (content->GetAttribute(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)) {            intValue = NS_STYLE_FRAME_YES;          }           else if ((NS_STYLE_FRAME_OFF == intValue) || (NS_STYLE_FRAME_NOSCROLL == intValue)) {            intValue = NS_STYLE_FRAME_NO;          }        }        if (NS_STYLE_FRAME_YES == intValue) {          NS_RELEASE(content);          return nsScrollPreference_kAlwaysScroll;        }         else if (NS_STYLE_FRAME_NO == intValue) {          NS_RELEASE(content);          return nsScrollPreference_kNeverScroll;        }      }          }    NS_RELEASE(content);  }  // XXX if we get here, check for nsIDOMFRAMEElement, nsIDOMIFRAMEElement interfaces  return nsScrollPreference_kAuto;}