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
@@ -3190,8 +3190,8 @@ nsTextControlFrame::SetInitialChildList(nsPresContext* aPresContext,
nsIView *view = first->GetView();
if (view)
{
nsIScrollableView *scrollView;
if (NS_SUCCEEDED(CallQueryInterface(view, &scrollView)))
nsIScrollableView *scrollView = view->ToScrollableView();
if (scrollView)
{
mScrollableView = scrollView; // Note: views are not addref'd
mTextSelImpl->SetScrollableView(scrollView);