From 07e06accb8ad9ddf646ea1988de277ec229090d3 Mon Sep 17 00:00:00 2001 From: "jeremy@chromium.org" Date: Fri, 6 Aug 2010 23:01:44 +0000 Subject: [Mac] Don't fade text on bookmark items if we don't have to. Fix a float <-> int comparison so items whose width is fractionally larger than the width of the cell aren't truncated. BUG=51183 TEST=See bug Review URL: http://codereview.chromium.org/3096007 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@55305 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/browser/cocoa/gradient_button_cell.mm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'chrome/browser/cocoa/gradient_button_cell.mm') diff --git a/chrome/browser/cocoa/gradient_button_cell.mm b/chrome/browser/cocoa/gradient_button_cell.mm index f9f0d83..0a03e40 100644 --- a/chrome/browser/cocoa/gradient_button_cell.mm +++ b/chrome/browser/cocoa/gradient_button_cell.mm @@ -632,7 +632,7 @@ static const NSTimeInterval kAnimationContinuousCycleDuration = 0.4; NSSize size = [title size]; // Don't complicate drawing unless we need to clip - if (size.width <= NSWidth(cellFrame)) { + if (floor(size.width) <= NSWidth(cellFrame)) { return [super drawTitle:title withFrame:cellFrame inView:controlView]; } -- cgit v1.1