| Index: chrome/browser/ui/cocoa/drag_util.mm
|
| diff --git a/chrome/browser/ui/cocoa/drag_util.mm b/chrome/browser/ui/cocoa/drag_util.mm
|
| index 0ce31db0ca53cc0a05c1ac8c195a9758c2f1ae60..fd8c99386bdd90468f14e1587b55be6dc33e6638 100644
|
| --- a/chrome/browser/ui/cocoa/drag_util.mm
|
| +++ b/chrome/browser/ui/cocoa/drag_util.mm
|
| @@ -151,10 +151,14 @@ NSImage* DragImageForBookmark(NSImage* favicon,
|
| NSString* ns_title = base::SysUTF16ToNSString(title);
|
|
|
| // Set the look of the title.
|
| - NSDictionary* attrs =
|
| - [NSDictionary dictionaryWithObject:[NSFont systemFontOfSize:
|
| - [NSFont smallSystemFontSize]]
|
| - forKey:NSFontAttributeName];
|
| + base::scoped_nsobject<NSMutableParagraphStyle> paragraph_style(
|
| + [[NSMutableParagraphStyle alloc] init]);
|
| + [paragraph_style setLineBreakMode:NSLineBreakByClipping];
|
| + NSDictionary* attrs = @{
|
| + NSFontAttributeName :
|
| + [NSFont systemFontOfSize:[NSFont smallSystemFontSize]],
|
| + NSParagraphStyleAttributeName : paragraph_style
|
| + };
|
| base::scoped_nsobject<NSAttributedString> rich_title(
|
| [[NSAttributedString alloc] initWithString:ns_title attributes:attrs]);
|
|
|
|
|