nsIScrollableView* s = GetScrollableView();
nsIScrollableView* s = GetScrollableView(mOuter->mPresContext);
nsGfxScrollFrameInner::AddHorizontalScrollbar(nsBoxLayoutState& aState, nsRect& aScrollAreaSize, PRBool aOnTop){  if (!mHScrollbarBox)    return PR_TRUE;#ifdef IBMBIDI  const nsStyleVisibility* vis = mOuter->GetStyleVisibility();  // Scroll the view horizontally if:  // 1)  We are creating the scrollbar for the first time and the  //     horizontal scroll position of the view is 0 or  // 2)  The display direction is changed  PRBool needScroll;  if (mLastDir == -1) {    // Creating the scrollbar the first time    nscoord curPosX = 0, curPosY = 0;          nsIScrollableView* s = GetScrollableView();    if (s) {      s->GetScrollPosition(curPosX, curPosY);    }    needScroll = (curPosX == 0);  } else {    needScroll = (mLastDir != vis->mDirection);  }  if (needScroll) {    SetAttribute(mHScrollbarBox, nsXULAtoms::curpos,                 (NS_STYLE_DIRECTION_LTR == vis->mDirection) ? 0 : 0x7FFFFFFF);  }  mLastDir = vis->mDirection;#endif // IBMBIDI    return AddRemoveScrollbar(aState, aScrollAreaSize, aOnTop, PR_TRUE, PR_TRUE);}