Don't use QueryInterface to get a scrollable view from a view b=258521 r+sr=roc

This commit is contained in:
neil@parkwaycc.co.uk
2004-11-24 00:19:21 +00:00
parent 892448e9fc
commit 954ec4a8a9
32 changed files with 84 additions and 112 deletions
+2 -2
View File
@@ -559,8 +559,8 @@ nsHTMLContainerFrame::CreateViewForFrame(nsIFrame* aFrame,
// Insert the view into the view hierarchy. If the parent view is a
// scrolling view we need to do this differently
nsIScrollableView* scrollingView;
if (NS_SUCCEEDED(CallQueryInterface(parentView, &scrollingView))) {
nsIScrollableView* scrollingView = parentView->ToScrollableView();
if (scrollingView) {
scrollingView->SetScrolledView(view);
} else {
nsIView* insertBefore = nsLayoutUtils::FindSiblingViewFor(parentView, aFrame);