summaryrefslogtreecommitdiffstats
path: root/chrome/browser/cocoa/gradient_button_cell.mm
diff options
context:
space:
mode:
authorjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 23:01:44 +0000
committerjeremy@chromium.org <jeremy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-08-06 23:01:44 +0000
commit07e06accb8ad9ddf646ea1988de277ec229090d3 (patch)
tree4e087b3d0bb0258babbe4dfcfdba32297fd58b65 /chrome/browser/cocoa/gradient_button_cell.mm
parentbba3823dbc18cb50d6c43a9777f21f052b81dca7 (diff)
downloadchromium_src-07e06accb8ad9ddf646ea1988de277ec229090d3.zip
chromium_src-07e06accb8ad9ddf646ea1988de277ec229090d3.tar.gz
chromium_src-07e06accb8ad9ddf646ea1988de277ec229090d3.tar.bz2
[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
Diffstat (limited to 'chrome/browser/cocoa/gradient_button_cell.mm')
-rw-r--r--chrome/browser/cocoa/gradient_button_cell.mm2
1 files changed, 1 insertions, 1 deletions
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];
}