Bug 363848. Scrollframes CAN TOO have an nsIScrollbarMediator scrolled frame. r=enndeaking,sr=mats

git-svn-id: svn://10.0.0.236/trunk@217209 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
roc+%cs.cmu.edu 2006-12-19 20:11:27 +00:00
parent 1ab4016c16
commit 5dd391d386

View File

@ -2605,13 +2605,10 @@ nsGfxScrollFrameInner::SaveState(nsIStatefulFrame::SpecialStateID aStateID)
return nsnull;
}
// XXX can this actually get hit? I don't think so
nsCOMPtr<nsIScrollbarMediator> mediator;
nsIFrame* first = GetScrolledFrame();
mediator = do_QueryInterface(first);
nsIScrollbarMediator* mediator;
CallQueryInterface(GetScrolledFrame(), &mediator);
if (mediator) {
// Child manages its own scrolling. Bail.
NS_ERROR("This code shouldn't be hit; alert robert@ocallahan.org");
// child handles its own scroll state, so don't bother saving state here
return nsnull;
}