зеркало из https://github.com/mozilla/gecko-dev.git
Bug 805745. WillPaint notification can flush, so re-get the listener after it on GTK2 widget backend. r=karlt
This commit is contained in:
Родитель
65fa296251
Коммит
7e29921004
|
@ -2034,6 +2034,13 @@ nsWindow::OnExposeEvent(cairo_t *cr)
|
|||
// there is nothing left to do.
|
||||
if (!mGdkWindow)
|
||||
return TRUE;
|
||||
|
||||
// Re-get the listener since the will paint notification might have
|
||||
// killed it.
|
||||
listener =
|
||||
mAttachedWidgetListener ? mAttachedWidgetListener : mWidgetListener;
|
||||
if (!listener)
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
#if defined(MOZ_WIDGET_GTK2)
|
||||
|
|
Загрузка…
Ссылка в новой задаче