diff --git a/mozilla/layout/generic/nsGfxScrollFrame.cpp b/mozilla/layout/generic/nsGfxScrollFrame.cpp index 2f075d04394..de2cb58f2da 100644 --- a/mozilla/layout/generic/nsGfxScrollFrame.cpp +++ b/mozilla/layout/generic/nsGfxScrollFrame.cpp @@ -2605,13 +2605,10 @@ nsGfxScrollFrameInner::SaveState(nsIStatefulFrame::SpecialStateID aStateID) return nsnull; } - // XXX can this actually get hit? I don't think so - nsCOMPtr 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; }