summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
authorglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 17:21:52 +0000
committerglen@chromium.org <glen@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2008-11-26 17:21:52 +0000
commitd5a38ba40bc09d7a3a0a8f6ee8d419c1094bcf11 (patch)
treee56234d2b27514acc2b93ecfd6046e0b41a0b9cc /chrome
parent589b8cc9b5d68b9b9faabcd9f11277d9be0a1da8 (diff)
downloadchromium_src-d5a38ba40bc09d7a3a0a8f6ee8d419c1094bcf11.zip
chromium_src-d5a38ba40bc09d7a3a0a8f6ee8d419c1094bcf11.tar.gz
chromium_src-d5a38ba40bc09d7a3a0a8f6ee8d419c1094bcf11.tar.bz2
Fix black flash when doing fast animations - our fix was previously Vista-only, but now we have cross platform goodness.
BUG=3676 Review URL: http://codereview.chromium.org/12670 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@6033 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome')
-rw-r--r--chrome/views/hwnd_view.cc11
1 files changed, 5 insertions, 6 deletions
diff --git a/chrome/views/hwnd_view.cc b/chrome/views/hwnd_view.cc
index 22990fb..4012646 100644
--- a/chrome/views/hwnd_view.cc
+++ b/chrome/views/hwnd_view.cc
@@ -174,15 +174,14 @@ void HWNDView::VisibleBoundsInRootChanged() {
}
void HWNDView::Paint(ChromeCanvas* canvas) {
- // On Vista, the area behind our window is black (due to the Aero Glass)
- // this means that during a fast resize (where our content doesn't draw
- // over the full size of our HWND, and the HWND background color
- // doesn't show up), we need to cover that blackness with something so
- // that fast resizes don't result in black flash.
+ // The area behind our window is black, so during a fast resize (where our
+ // content doesn't draw over the full size of our HWND, and the HWND
+ // background color doesn't show up), we need to cover that blackness with
+ // something so that fast resizes don't result in black flash.
//
// It would be nice if this used some approximation of the page's
// current background color.
- if (installed_clip_ && win_util::ShouldUseVistaFrame())
+ if (installed_clip_)
canvas->FillRectInt(SkColorSetRGB(255, 255, 255), 0, 0, width(), height());
}