Bug 296000. Get rid of some unnecessary code. r+sr=roc,a=asa,patch by Martijn Wargers

This commit is contained in:
roc+%cs.cmu.edu 2005-06-26 22:22:40 +00:00
Родитель 9749d198a9
Коммит a8aa980b85
1 изменённых файлов: 1 добавлений и 7 удалений

Просмотреть файл

@ -401,13 +401,7 @@ nsLayoutUtils::GetNearestScrollingView(nsIView* aView, Direction aDirection)
nsPresContext::ScrollbarStyles ss =
nsLayoutUtils::ScrollbarStylesOfView(scrollableView);
nsIScrollableFrame *scrollableFrame = GetScrollableFrameFor(scrollableView);
// NS_ASSERTION(scrollableFrame, "Must have scrollable frame for view!");
if (!scrollableFrame) {
// XXX Once bug 260652 is fixed we should get scrollable frames for HTML
// frames and can uncomment the above scrollableFrame assertion instead
// of using this if condition.
break; // If scrollableView but not scrollable Frame, on an HTML <frame>
}
NS_ASSERTION(scrollableFrame, "Must have scrollable frame for view!");
nsMargin margin = scrollableFrame->GetActualScrollbarSizes();
// Get size of total scrollable area
nscoord totalWidth, totalHeight;