nsresult result = GetViewManager(getter_AddRefs(viewManager)); if (NS_SUCCEEDED(result) && viewManager) { nsIScrollableView *scrollView; result = viewManager->GetRootScrollableView(&scrollView); if (NS_SUCCEEDED(result) && scrollView) {  } } return result; #endif
nsIScrollableView *scrollableView; result = GetViewManager(getter_AddRefs(viewManager)); if (NS_FAILED(result)) return result; if (!viewManager) return NS_ERROR_UNEXPECTED; result = viewManager->GetRootScrollableView(&scrollableView); if (NS_FAILED(result)) return result; if (!scrollableView) return NS_ERROR_UNEXPECTED; nsIView *scrolledView; result = scrollableView->GetScrolledView(scrolledView); mSelection->CommonPageMove(aForward, aExtend, scrollableView, mSelection);  return ScrollSelectionIntoView(nsISelectionController::SELECTION_NORMAL, nsISelectionController::SELECTION_FOCUS_REGION, PR_TRUE);
PresShell::PageMove(PRBool aForward, PRBool aExtend){#if 1  return ScrollPage(aForward);#else  nsCOMPtr<nsIViewManager> viewManager;  nsresult result = GetViewManager(getter_AddRefs(viewManager));  if (NS_SUCCEEDED(result) && viewManager)  {    nsIScrollableView *scrollView;    result = viewManager->GetRootScrollableView(&scrollView);    if (NS_SUCCEEDED(result) && scrollView)    {          }  }  return result;#endif //0}