summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/background_gradient_view.mm
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/cocoa/background_gradient_view.mm')
-rw-r--r--chrome/browser/cocoa/background_gradient_view.mm12
1 files changed, 8 insertions, 4 deletions
diff --git a/chrome/browser/cocoa/background_gradient_view.mm b/chrome/browser/cocoa/background_gradient_view.mm
index 0be2f56..df3527a 100644
--- a/chrome/browser/cocoa/background_gradient_view.mm
+++ b/chrome/browser/cocoa/background_gradient_view.mm
@@ -52,10 +52,14 @@
CGFloat winHeight = NSHeight([[self window] frame]);
NSGradient *gradient = [theme gradientForStyle:GTMThemeStyleToolBar
state:isKey];
- NSPoint startPoint = [self convertPointFromBase:
- NSMakePoint(0, winHeight - kToolbarTopOffset)];
- NSPoint endPoint = [self convertPointFromBase:
- NSMakePoint(0, winHeight - kToolbarTopOffset - kToolbarMaxHeight)];
+ NSPoint startPoint =
+ [self convertPoint:NSMakePoint(0, winHeight - kToolbarTopOffset)
+ fromView:nil];
+ NSPoint endPoint =
+ [self convertPoint:NSMakePoint(0, winHeight -
+ kToolbarTopOffset -
+ kToolbarMaxHeight)
+ fromView:nil];
[gradient drawFromPoint:startPoint
toPoint:endPoint