diff options
author | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 13:19:54 +0000 |
---|---|---|
committer | rsesek@chromium.org <rsesek@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-03-02 13:19:54 +0000 |
commit | 54a8a1202b2da9ceb8097c3b93fadbec8d37e81a (patch) | |
tree | a1a9f65cfeb289063787bb2208fe26959536f5db | |
parent | 25b87076ebf86fac0b63e00673e4774bd0a64628 (diff) | |
download | chromium_src-54a8a1202b2da9ceb8097c3b93fadbec8d37e81a.zip chromium_src-54a8a1202b2da9ceb8097c3b93fadbec8d37e81a.tar.gz chromium_src-54a8a1202b2da9ceb8097c3b93fadbec8d37e81a.tar.bz2 |
[Mac] Incredibly minor pixel pushing on unspoofable infobars.
BUG=none
TEST=none
Review URL: http://codereview.chromium.org/6592083
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@76532 0039d316-1c4b-4281-b951-d872f2087c98
-rw-r--r-- | chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm | 14 |
1 files changed, 5 insertions, 9 deletions
diff --git a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm index 0e7fb74..70e1bb3 100644 --- a/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm +++ b/chrome/browser/ui/cocoa/infobars/infobar_gradient_view.mm @@ -63,17 +63,15 @@ const double kBackgroundColorBottom[3] = const CGFloat curveDistance = 13.0; const CGFloat iconWidth = 29.0; const CGFloat tipPadding = 4.0; - const CGFloat pathJoinShift = 3.0; + const CGFloat pathJoinShift = 2.5; // Draw the tab bulge that acts as the anti-spoofing countermeasure. NSBezierPath* bulgePath = [NSBezierPath bezierPath]; NSPoint startPoint = NSMakePoint(0, NSMaxY([self frame]) - tipHeight); [bulgePath moveToPoint:startPoint]; [bulgePath relativeCurveToPoint:NSMakePoint(curveDistance, tipHeight) - // Fuzz the points by 0.5 pixels to get perfect alignment. - controlPoint1:NSMakePoint(curveDistance/2, 0.5) - controlPoint2:NSMakePoint(curveDistance/2, - tipHeight - 0.5)]; + controlPoint1:NSMakePoint(curveDistance/2, 0) + controlPoint2:NSMakePoint(curveDistance/2, tipHeight)]; // The height is too small and the control points too close for the stroke // across this straight line to have enough definition. Save off the points @@ -83,10 +81,8 @@ const double kBackgroundColorBottom[3] = NSPoint topStrokeEnd = [bulgePath currentPoint]; [bulgePath relativeCurveToPoint:NSMakePoint(curveDistance, -tipHeight) - // Fuzz the points by 0.5 pixels to get perfect alignment. - controlPoint1:NSMakePoint(curveDistance/2, 0.5) - controlPoint2:NSMakePoint(curveDistance/2, - -tipHeight + 0.5)]; + controlPoint1:NSMakePoint(curveDistance/2, 0) + controlPoint2:NSMakePoint(curveDistance/2, -tipHeight)]; // Around the bounds of the infobar, continue drawing the path into which the // gradient will be drawn. |