Backout changeset b7b89bbdd7ab (bug 539356) because of performance and correctness regressions

This commit is contained in:
Ehsan Akhgari 2012-07-03 20:15:58 -04:00
parent d717fc9221
commit 74e9cbc920

View File

@ -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: