summaryrefslogtreecommitdiffstats
path: root/views
diff options
context:
space:
mode:
authorjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 17:53:32 +0000
committerjcampan@chromium.org <jcampan@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-02 17:53:32 +0000
commitbd9a6932e90ef01485f1c7d9d388f36efb95f05c (patch)
tree50d31402f85a00bb955425e2284f95b2da140628 /views
parent8fd0543c5bb8faab2dc6f30fdf7d9dd3b164a88e (diff)
downloadchromium_src-bd9a6932e90ef01485f1c7d9d388f36efb95f05c.zip
chromium_src-bd9a6932e90ef01485f1c7d9d388f36efb95f05c.tar.gz
chromium_src-bd9a6932e90ef01485f1c7d9d388f36efb95f05c.tar.bz2
When installing/uninstalling the clip on native buttons they would not be painted properly. This is the case for animations, such as the dangerous download item animation.
(For some unclear reasons this would happen only in aero and only in a popup browser frames.) Explicitly asking for a repaint when setting the clip fixes it. BUG=23087 TEST=Start a dangerous download from a popup (sorry, I don't have any public URL to repro). The dangerous download should display properly in the download shelf. Review URL: http://codereview.chromium.org/259005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@27858 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'views')
-rw-r--r--views/controls/native/native_view_host_win.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/views/controls/native/native_view_host_win.cc b/views/controls/native/native_view_host_win.cc
index 3c05e2a..4761c2e 100644
--- a/views/controls/native/native_view_host_win.cc
+++ b/views/controls/native/native_view_host_win.cc
@@ -94,7 +94,7 @@ void NativeViewHostWin::InstallClip(int x, int y, int w, int h) {
HRGN clip_region = CreateRectRgn(x, y, x + w, y + h);
// NOTE: SetWindowRgn owns the region (as well as the deleting the
// current region), as such we don't delete the old region.
- SetWindowRgn(host_->native_view(), clip_region, FALSE);
+ SetWindowRgn(host_->native_view(), clip_region, TRUE);
installed_clip_ = true;
}
@@ -103,7 +103,7 @@ bool NativeViewHostWin::HasInstalledClip() {
}
void NativeViewHostWin::UninstallClip() {
- SetWindowRgn(host_->native_view(), 0, FALSE);
+ SetWindowRgn(host_->native_view(), 0, TRUE);
installed_clip_ = false;
}