Fixed bug 46085. We were not firing the select event. This is the second half of the checkin... had some problems with CVS. jst is watching this checkin. r=mjudge.

git-svn-id: svn://10.0.0.236/trunk@77435 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
heikki%netscape.com
2000-08-29 01:47:05 +00:00
parent 1bbade0a6e
commit 19052f5fb1
6 changed files with 94 additions and 5 deletions

View File

@@ -2740,8 +2740,26 @@ PresShell::ScrollFrameIntoView(nsIFrame *aFrame,
if (mViewManager) {
// Get the viewport scroller
nsIScrollableView* scrollingView;
mViewManager->GetRootScrollableView(&scrollingView);
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;
}
if (scrollingView) {
nsIView* scrolledView;