Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(928)

Unified Diff: ui/views/view.cc

Issue 10835027: views: Remove unused PaintLock API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ui/views/view.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/view.cc
diff --git a/ui/views/view.cc b/ui/views/view.cc
index 078d42a75a3b0855fad2aca1fdbb7eb20fdf0fbb..406ad42914754c13fa73df1b85c722969147748d 100644
--- a/ui/views/view.cc
+++ b/ui/views/view.cc
@@ -102,7 +102,6 @@ View::View()
parent_(NULL),
visible_(true),
enabled_(true),
- painting_enabled_(true),
notify_enter_exit_on_child_(false),
registered_for_visible_bounds_notification_(false),
clip_insets_(0, 0, 0, 0),
@@ -690,7 +689,7 @@ void View::SchedulePaint() {
}
void View::SchedulePaintInRect(const gfx::Rect& rect) {
- if (!visible_ || !painting_enabled_)
+ if (!visible_)
return;
if (layer()) {
@@ -1501,7 +1500,7 @@ void View::SchedulePaintBoundsChanged(SchedulePaintType type) {
}
void View::PaintCommon(gfx::Canvas* canvas) {
- if (!visible_ || !painting_enabled_)
+ if (!visible_)
return;
{
« no previous file with comments | « ui/views/view.h ('k') | ui/views/views.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698