We might not have a scrollbar frame; deal with that. Bug 366112, r+sr=roc, a=jay for 1.8.0 and 1.8.1 branches

This commit is contained in:
bzbarsky%mit.edu 2007-01-09 00:13:08 +00:00
Родитель d42e9d33b2
Коммит 82df20f4a2
1 изменённых файлов: 5 добавлений и 0 удалений

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

@ -300,6 +300,11 @@ nsNativeScrollbarFrame::Hookup()
}
Parts parts = FindParts();
if (!parts.mScrollbarFrame) {
// Nothing to do here
return;
}
// We can't just pass 'mediator' to the widget, because 'mediator' might go away.
// So pass a pointer to us. When we go away, we can tell the widget.
nsIContent* scrollbarContent = parts.mScrollbarFrame->GetContent();