diff options
author | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 18:31:05 +0000 |
---|---|---|
committer | estade@chromium.org <estade@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-08-31 18:31:05 +0000 |
commit | 62391376b5c86eea70af0d8e429ffc8a4b56e60d (patch) | |
tree | e5382e8663a693fc0f78040310e403f46ecaa7b2 /chrome/browser/gtk/infobar_gtk.cc | |
parent | 2951965787cea2ad2f1c966791a68e2f10874071 (diff) | |
download | chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.zip chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.tar.gz chromium_src-62391376b5c86eea70af0d8e429ffc8a4b56e60d.tar.bz2 |
Don't resize the renderer while opening the bookmark bar or an infobar.
This is just a performance optimization. Previously this code was added for closing bookmark bars as a bit of visual polish.Doing the same thing for opening bookmark bars should reduce CPU usage but it won't look any different (for fast computers anyway).
BUG=17133
Review URL: http://codereview.chromium.org/183011
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@24911 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/gtk/infobar_gtk.cc')
-rw-r--r-- | chrome/browser/gtk/infobar_gtk.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/chrome/browser/gtk/infobar_gtk.cc b/chrome/browser/gtk/infobar_gtk.cc index b3c0da0..52d9844 100644 --- a/chrome/browser/gtk/infobar_gtk.cc +++ b/chrome/browser/gtk/infobar_gtk.cc @@ -136,8 +136,8 @@ void InfoBar::Close() { delete this; } -bool InfoBar::IsClosing() { - return slide_widget_->IsClosing(); +bool InfoBar::IsAnimating() { + return slide_widget_->IsAnimating(); } void InfoBar::RemoveInfoBar() const { |