mHTMLDocument->SetIsFrameset(mFrameset != nsnull);
nsCOMPtr<nsIScrollable> scrollableContainer = do_QueryInterface(mDocShell); if (scrollableContainer) { if (mFrameset) { scrollableContainer-> SetCurrentScrollbarPreferences(nsIScrollable::ScrollOrientation_Y, nsIScrollable::Scrollbar_Never); scrollableContainer-> SetCurrentScrollbarPreferences(nsIScrollable::ScrollOrientation_X, nsIScrollable::Scrollbar_Never); } else { scrollableContainer->ResetScrollbarPreferences(); } }
HTMLContentSink::StartLayout(){  if (mLayoutStarted) {    return;  }  mLayoutStarted = PR_TRUE;  mLastNotificationTime = PR_Now();  mHTMLDocument->SetIsFrameset(mFrameset != nsnull);  nsContentSink::StartLayout(mFrameset != nsnull);}