зеркало из https://github.com/mozilla/pjs.git
Make sure we update the update-area when doing synchronous updates or full widget updates
This commit is contained in:
Родитель
7e4b526ce6
Коммит
ef249993cc
|
@ -435,10 +435,13 @@ NS_METHOD nsWidget::Invalidate(PRBool aIsSynchronous)
|
||||||
return NS_ERROR_FAILURE;
|
return NS_ERROR_FAILURE;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (aIsSynchronous)
|
if (aIsSynchronous) {
|
||||||
::gtk_widget_draw(mWidget, NULL);
|
::gtk_widget_draw(mWidget, NULL);
|
||||||
else
|
mUpdateArea.SetRect(0, 0, 0, 0);
|
||||||
|
} else {
|
||||||
::gtk_widget_queue_draw(mWidget);
|
::gtk_widget_queue_draw(mWidget);
|
||||||
|
mUpdateArea.SetRect(0, 0, mBounds.width, mBounds.height);
|
||||||
|
}
|
||||||
|
|
||||||
#ifdef DEBUG_pavlov
|
#ifdef DEBUG_pavlov
|
||||||
g_print("nsWidget::Invalidate(this=%p, %i)\n", this, aIsSynchronous);
|
g_print("nsWidget::Invalidate(this=%p, %i)\n", this, aIsSynchronous);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче