summaryrefslogtreecommitdiffstats
path: root/chrome/browser/views
diff options
context:
space:
mode:
authorben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-06 15:38:30 +0000
committerben@chromium.org <ben@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-10-06 15:38:30 +0000
commitfb3723e2f5fc239bda062d629d088cc43d1174b4 (patch)
treef0b92d30dd39c36cf8361f3f80fa127925609656 /chrome/browser/views
parent047fa7e78d726020cc596f93a73e29e097515203 (diff)
downloadchromium_src-fb3723e2f5fc239bda062d629d088cc43d1174b4.zip
chromium_src-fb3723e2f5fc239bda062d629d088cc43d1174b4.tar.gz
chromium_src-fb3723e2f5fc239bda062d629d088cc43d1174b4.tar.bz2
Reduce the amount of excessive updating done when there is no window icon to be
updated. Improves sunspider results. git-svn-id: svn://svn.chromium.org/chrome/trunk/src@2879 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/views')
-rw-r--r--chrome/browser/views/frame/browser_view2.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/chrome/browser/views/frame/browser_view2.cc b/chrome/browser/views/frame/browser_view2.cc
index 843ba45..a1451ed 100644
--- a/chrome/browser/views/frame/browser_view2.cc
+++ b/chrome/browser/views/frame/browser_view2.cc
@@ -335,7 +335,8 @@ void BrowserView2::SelectedTabToolbarSizeChanged(bool is_animating) {
void BrowserView2::UpdateTitleBar() {
frame_->GetWindow()->UpdateWindowTitle();
- frame_->GetWindow()->UpdateWindowIcon();
+ if (ShouldShowWindowIcon())
+ frame_->GetWindow()->UpdateWindowIcon();
}
void BrowserView2::Activate() {
@@ -396,7 +397,8 @@ void BrowserView2::SetAcceleratorTable(
}
void BrowserView2::ValidateThrobber() {
- frame_->GetWindow()->UpdateWindowIcon();
+ if (ShouldShowWindowIcon())
+ frame_->GetWindow()->UpdateWindowIcon();
}
gfx::Rect BrowserView2::GetNormalBounds() {