зеркало из https://github.com/mozilla/pjs.git
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:
Родитель
d42e9d33b2
Коммит
82df20f4a2
|
@ -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();
|
||||
|
|
Загрузка…
Ссылка в новой задаче