Chromium Code Reviews| Index: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| index bb565a35a09adc72e95c7dd96071cdc1f6ff24a1..012a0ebdf85ebb5374fc5bd38cf1afdb513d236b 100644 |
| --- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| @@ -535,6 +535,11 @@ void OmniboxViewMac::ApplyTextAttributes(const string16& display_text, |
| [as addAttribute:NSFontAttributeName value:GetFieldFont() |
| range:NSMakeRange(0, [as length])]; |
| + // A kinda hacky way to add breaking at periods. This is what Safari does. |
| + // This works for IDNs too, despite the "en_US". |
| + [as addAttribute:@"NSLanguage" value:@"en_US_POSIX" |
| + range:NSMakeRange(0, [as length])]; |
|
Mark Mentovai
2011/06/09 14:23:05
Optional: consider computing NSMakeRange(0, [as le
|
| + |
| // Make a paragraph style locking in the standard line height as the maximum, |
| // otherwise the baseline may shift "downwards". |
| scoped_nsobject<NSMutableParagraphStyle> |