Index: views/view.cc |
diff --git a/views/view.cc b/views/view.cc |
index 75a93b1f4602f55fc203202937bc158a52184f42..3e667113e4395f02e2b0dcf2cf89c64fb7c02917 100644 |
--- a/views/view.cc |
+++ b/views/view.cc |
@@ -107,6 +107,7 @@ View::View() |
parent_(NULL), |
visible_(true), |
enabled_(true), |
+ painting_enabled_(true), |
registered_for_visible_bounds_notification_(false), |
clip_x_(0.0), |
clip_y_(0.0), |
@@ -693,7 +694,7 @@ void View::SchedulePaintInRect(const gfx::Rect& rect) { |
} |
void View::Paint(gfx::Canvas* canvas) { |
- if (!IsVisible()) |
+ if (!IsVisible() || !painting_enabled_) |
sky
2011/08/25 03:00:13
I'm still nervous about having this. If we're goin
|
return; |
ScopedCanvas scoped_canvas(NULL); |