diff options
author | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-09 21:29:56 +0000 |
---|---|---|
committer | oshima@google.com <oshima@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-05-09 21:29:56 +0000 |
commit | 43162fc69612c9824547ca9edb05a308c7c1737c (patch) | |
tree | fa1dac372e46f8b074e1521a0e175231ffff7ae2 /views | |
parent | e0b231d3878b5351b1e643a2d746b733e3a5e13d (diff) | |
download | chromium_src-43162fc69612c9824547ca9edb05a308c7c1737c.zip chromium_src-43162fc69612c9824547ca9edb05a308c7c1737c.tar.gz chromium_src-43162fc69612c9824547ca9edb05a308c7c1737c.tar.bz2 |
Delete Obsolete PaintNow method
This seems to be doing nothing now.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6969005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@84683 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r-- | views/controls/button/menu_button.cc | 5 | ||||
-rw-r--r-- | views/view.cc | 10 | ||||
-rw-r--r-- | views/view.h | 3 |
3 files changed, 0 insertions, 18 deletions
diff --git a/views/controls/button/menu_button.cc b/views/controls/button/menu_button.cc index 3451434..353205d 100644 --- a/views/controls/button/menu_button.cc +++ b/views/controls/button/menu_button.cc @@ -74,11 +74,6 @@ MenuButton::~MenuButton() { bool MenuButton::Activate() { SetState(BS_PUSHED); - // We need to synchronously paint here because subsequently we enter a - // menu modal loop which will stop this window from updating and - // receiving the paint message that should be spawned by SetState until - // after the menu closes. - PaintNow(); if (menu_delegate_) { gfx::Rect lb = GetLocalBounds(); diff --git a/views/view.cc b/views/view.cc index 61ca2d0..12fbf45 100644 --- a/views/view.cc +++ b/views/view.cc @@ -727,16 +727,6 @@ void View::Paint(gfx::Canvas* canvas) { } } -void View::PaintNow() { - if (!IsVisible()) - return; - - if (parent()) - parent()->PaintNow(); -} - - - ThemeProvider* View::GetThemeProvider() const { const Widget* widget = GetWidget(); return widget ? widget->GetThemeProvider() : NULL; diff --git a/views/view.h b/views/view.h index 6c0b950..07577c0 100644 --- a/views/view.h +++ b/views/view.h @@ -528,9 +528,6 @@ class View : public AcceleratorTarget { // the hierarchy beneath it. virtual void Paint(gfx::Canvas* canvas); - // Paint this View immediately. - virtual void PaintNow(); - // The background object is owned by this object and may be NULL. void set_background(Background* b) { background_.reset(b); } const Background* background() const { return background_.get(); } |