Index: views/view.cc |
=================================================================== |
--- views/view.cc (revision 75035) |
+++ views/view.cc (working copy) |
@@ -629,6 +629,17 @@ |
} |
} |
+void View::PaintChildren(gfx::Canvas* canvas) { |
+ for (int i = 0, count = child_count(); i < count; ++i) { |
+ View* child = GetChildViewAt(i); |
+ if (!child) { |
+ NOTREACHED() << "Should not have a NULL child View for index in bounds"; |
+ continue; |
+ } |
+ child->Paint(canvas); |
+ } |
+} |
+ |
void View::OnPaint(gfx::Canvas* canvas) { |
OnPaintBackground(canvas); |
OnPaintFocusBorder(canvas); |
@@ -658,7 +669,7 @@ |
parent()->PaintNow(); |
} |
-void View::ProcessPaint(gfx::Canvas* canvas) { |
+void View::Paint(gfx::Canvas* canvas) { |
if (!IsVisible()) |
return; |
@@ -703,17 +714,6 @@ |
canvas->Restore(); |
} |
-void View::PaintChildren(gfx::Canvas* canvas) { |
- for (int i = 0, count = child_count(); i < count; ++i) { |
- View* child = GetChildViewAt(i); |
- if (!child) { |
- NOTREACHED() << "Should not have a NULL child View for index in bounds"; |
- continue; |
- } |
- child->ProcessPaint(canvas); |
- } |
-} |
- |
ThemeProvider* View::GetThemeProvider() const { |
const Widget* widget = GetWidget(); |
return widget ? widget->GetThemeProvider() : NULL; |