Chromium Code Reviews| Index: chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm |
| =================================================================== |
| --- chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (revision 71802) |
| +++ chrome/browser/ui/cocoa/bookmarks/bookmark_button_cell.mm (working copy) |
| @@ -231,10 +231,11 @@ |
| if ([button isFolder]) { |
| NSRect imageRect = NSZeroRect; |
| imageRect.size = [arrowImage_ size]; |
| + const CGFloat kArrowOffset = 1.0; // Required for proper centering. |
| NSRect drawRect = NSOffsetRect(imageRect, |
| NSWidth(cellFrame) - NSWidth(imageRect), |
| (NSHeight(cellFrame) / 2.0) - |
| - (NSHeight(imageRect) / 2.0)); |
| + (NSHeight(imageRect) / 2.0) + kArrowOffset); |
|
mafv
2011/01/19 22:39:39
It may just be the codereview system, but the inde
mrossetti
2011/01/20 01:41:42
Done.
|
| [arrowImage_ drawInRect:drawRect |
| fromRect:imageRect |
| operation:NSCompositeSourceOver |