summaryrefslogtreecommitdiffstats
path: root/chrome/views
diff options
context:
space:
mode:
authorpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 17:42:58 +0000
committerpkasting@chromium.org <pkasting@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-26 17:42:58 +0000
commit5eedfd5ce8e3caa81b2516d69115df9658089e1a (patch)
treedbbbdd76042bbade744a0392fd1ed4348f3daa5a /chrome/views
parent3a68cd8f6002931507bfcace5fd8c87565584bf7 (diff)
downloadchromium_src-5eedfd5ce8e3caa81b2516d69115df9658089e1a.zip
chromium_src-5eedfd5ce8e3caa81b2516d69115df9658089e1a.tar.gz
chromium_src-5eedfd5ce8e3caa81b2516d69115df9658089e1a.tar.bz2
Two of the three places that set a window mask had it wrong. Fix it.
Review URL: http://codereview.chromium.org/18580 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8637 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/views')
-rw-r--r--chrome/views/custom_frame_window.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/chrome/views/custom_frame_window.cc b/chrome/views/custom_frame_window.cc
index 5896b24..e7edb401 100644
--- a/chrome/views/custom_frame_window.cc
+++ b/chrome/views/custom_frame_window.cc
@@ -473,12 +473,15 @@ void DefaultNonClientView::GetWindowMask(const gfx::Size& size,
// Redefine the window visible region for the new size.
window_mask->moveTo(0, 3);
+ window_mask->lineTo(1, 2);
window_mask->lineTo(1, 1);
+ window_mask->lineTo(2, 1);
window_mask->lineTo(3, 0);
window_mask->lineTo(SkIntToScalar(size.width() - 3), 0);
+ window_mask->lineTo(SkIntToScalar(size.width() - 2), 1);
window_mask->lineTo(SkIntToScalar(size.width() - 1), 1);
- window_mask->lineTo(SkIntToScalar(size.width() - 1), 3);
+ window_mask->lineTo(SkIntToScalar(size.width() - 1), 2);
window_mask->lineTo(SkIntToScalar(size.width()), 3);
window_mask->lineTo(SkIntToScalar(size.width()),