Comment 35 for bug 744580

Revision history for this message
In , Masayuki (masayuki) wrote :

(In reply to comment #27)
> > + nsPoint currentScrollPos = scrollableFrame->GetScrollPosition();
> > + nsRect visibleRectOfScrolledFrame = scrollableFrame->GetScrollPortRect();
> > + visibleRectOfScrolledFrame.MoveTo(currentScrollPos);
>
> This should be scrollableFrame->GetScrollPortRect() + curentScrollPos, right?

Oops, I changed to:

> 1.62 + nsRect visibleRectOfScrolledFrame =
> 1.63 + scrollableFrame->GetScrollPortRect() + scrollableFrame->GetScrollPosition();

This is same as my original code only when GetScrollPortRect() is positioned 0, 0. Is that always true??