Backed out a change that was not supposed to go in. This was a work-in-process for bug 8927.

git-svn-id: svn://10.0.0.236/trunk@77438 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com
2000-08-29 01:56:46 +00:00
parent c7bf3b3515
commit 65e15b0ce6
2 changed files with 4 additions and 40 deletions

View File

@@ -2740,26 +2740,8 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
if (mViewManager) {
// Get the viewport scroller
nsIScrollableView* rootscrollingView;
mViewManager->GetRootScrollableView(&rootscrollingView);
nsIFrame *viewParent;
nsIScrollableView* scrollingView = nsnull;
aFrame->GetParentWithView(mPresContext,&viewParent);
if (viewParent) {
nsIView *view;//XXX COM ptr?
viewParent->GetView(mPresContext,&view);
if (view) {
nsIViewManager *vm = nsnull;
view->GetViewManager(vm);
if (vm){
vm->GetRootScrollableView(&scrollingView);
}
}
}
if (!scrollingView) {
scrollingView = rootscrollingView;
}
nsIScrollableView* scrollingView;
mViewManager->GetRootScrollableView(&scrollingView);
if (scrollingView) {
nsIView* scrolledView;