Chromium Code Reviews| Index: ui/views/view.cc |
| diff --git a/ui/views/view.cc b/ui/views/view.cc |
| index 0b6efdf1086b52cf535a4b253d5fb92f70749d9c..89923d675cd4dc44e7db1394ba85b726dc8bd8c8 100644 |
| --- a/ui/views/view.cc |
| +++ b/ui/views/view.cc |
| @@ -737,6 +737,8 @@ void View::SchedulePaintInRect(const gfx::Rect& rect) { |
| void View::Paint(const ui::PaintContext& parent_context) { |
| if (!visible_) |
| return; |
| + if (bounds().IsEmpty()) |
|
weiliangc
2015/06/09 22:04:42
nit: We can use size() instead?
danakj
2015/06/09 22:05:15
Ya, though size() is bounds().size() so that's an
|
| + return; |
| gfx::Vector2d offset_to_parent; |
| if (!layer()) { |