Index: ui/views/view.cc |
diff --git a/ui/views/view.cc b/ui/views/view.cc |
index 0b6efdf1086b52cf535a4b253d5fb92f70749d9c..d0882c9a9e0cdd4dfec303a927f323be021fe5f3 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 (size().IsEmpty()) |
+ return; |
gfx::Vector2d offset_to_parent; |
if (!layer()) { |