if ((NS_STYLE_OVERFLOW_SCROLL == aDisplay->mOverflow) || (NS_STYLE_OVERFLOW_AUTO == aDisplay->mOverflow)) {
PRInt32 scrolling    = -1; nsISupports* container; if (nsnull != aPresContext) { aPresContext->GetContainer(&container); if (nsnull != container) { nsIWebShell* webShell = nsnull; container->QueryInterface(kIWebShellIID, (void**) &webShell); if (nsnull != webShell) { webShell->GetScrolling(scrolling); NS_RELEASE(webShell); } NS_RELEASE(container); } }  if (-1 == scrolling) { scrolling = aDisplay->mOverflow; } if ((NS_STYLE_OVERFLOW_SCROLL == scrolling) || (NS_STYLE_OVERFLOW_AUTO == scrolling)) {
HTMLStyleSheetImpl::IsScrollable(const nsStyleDisplay* aDisplay){  // For the time being it's scrollable if the overflow property is auto or  // scroll, regardless of whether the width  or height is fixed in size  if ((NS_STYLE_OVERFLOW_SCROLL == aDisplay->mOverflow) ||      (NS_STYLE_OVERFLOW_AUTO == aDisplay->mOverflow)) {    return PR_TRUE;  }  return PR_FALSE;}