mirror of
https://github.com/mozilla/gecko-dev.git
synced 2025-03-03 23:30:46 +00:00
fix invalidate async problem that michaelp reported.
This commit is contained in:
parent
a7be33d09d
commit
9d55a9a24d
@ -431,16 +431,12 @@ NS_METHOD nsWidget::Invalidate(const nsRect & aRect, PRBool aIsSynchronous)
|
|||||||
nRect.x = aRect.x;
|
nRect.x = aRect.x;
|
||||||
nRect.y = aRect.y;
|
nRect.y = aRect.y;
|
||||||
|
|
||||||
#ifdef GTK_HAVE_FEATURES_1_1_14
|
|
||||||
if ( aIsSynchronous)
|
if ( aIsSynchronous)
|
||||||
#endif
|
|
||||||
::gtk_widget_draw(mWidget, &nRect);
|
::gtk_widget_draw(mWidget, &nRect);
|
||||||
#ifdef GTK_HAVE_FEATURES_1_1_14
|
|
||||||
else
|
else
|
||||||
::gtk_widget_queue_draw_area(mWidget,
|
::gtk_widget_queue_draw_area(mWidget,
|
||||||
aRect.x, aRect.y,
|
aRect.x, aRect.y,
|
||||||
aRect.width, aRect.height);
|
aRect.width, aRect.height);
|
||||||
#endif
|
|
||||||
|
|
||||||
return NS_OK;
|
return NS_OK;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user