mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Backout changeset b7b89bbdd7ab (bug 539356) because of performance and correctness regressions
This commit is contained in:
parent
d717fc9221
commit
74e9cbc920
@ -1576,17 +1576,7 @@ class nsIWidget : public nsISupports {
|
||||
if (!mNeedsPaint) {
|
||||
return false;
|
||||
}
|
||||
|
||||
bool visible;
|
||||
nsresult rv = IsVisible(visible);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
if (!visible) {
|
||||
return false;
|
||||
}
|
||||
nsIntRect bounds;
|
||||
rv = GetBounds(bounds);
|
||||
NS_ENSURE_SUCCESS(rv, false);
|
||||
return !bounds.IsEmpty();
|
||||
return true;
|
||||
}
|
||||
protected:
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user