mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-12 00:50:40 +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.y = aRect.y;
|
||||
|
||||
#ifdef GTK_HAVE_FEATURES_1_1_14
|
||||
if ( aIsSynchronous)
|
||||
#endif
|
||||
::gtk_widget_draw(mWidget, &nRect);
|
||||
#ifdef GTK_HAVE_FEATURES_1_1_14
|
||||
else
|
||||
::gtk_widget_queue_draw_area(mWidget,
|
||||
aRect.x, aRect.y,
|
||||
aRect.width, aRect.height);
|
||||
#endif
|
||||
|
||||
return NS_OK;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user