summaryrefslogtreecommitdiffstats
path: root/chrome
diff options
context:
space:
mode:
Diffstat (limited to 'chrome')
-rw-r--r--chrome/browser/views/frame/opaque_non_client_view.cc7
-rw-r--r--chrome/views/custom_frame_window.cc5
2 files changed, 9 insertions, 3 deletions
diff --git a/chrome/browser/views/frame/opaque_non_client_view.cc b/chrome/browser/views/frame/opaque_non_client_view.cc
index 220ca8f..ff02b83 100644
--- a/chrome/browser/views/frame/opaque_non_client_view.cc
+++ b/chrome/browser/views/frame/opaque_non_client_view.cc
@@ -606,13 +606,16 @@ void OpaqueNonClientView::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() - 0), 3);
+ window_mask->lineTo(SkIntToScalar(size.width() - 1), 2);
+ window_mask->lineTo(SkIntToScalar(size.width()), 3);
window_mask->lineTo(SkIntToScalar(size.width()),
SkIntToScalar(size.height()));
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()),