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 0d41fb108a938cb2140730f2ee7025cfd6bb0a2f..720aa681be8bcf7f7644172c1fa82ed6b18a3990 100644 |
| --- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| +++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm |
| @@ -155,6 +155,12 @@ OmniboxViewMac::OmniboxViewMac(OmniboxEditController* controller, |
| layoutManager([[NSLayoutManager alloc] init]); |
| [layoutManager setUsesScreenFonts:YES]; |
| line_height_ = [layoutManager defaultLineHeightForFont:GetFieldFont()]; |
| + |
| + // Extended instant uses a larger font so increase line height to reduce |
| + // clipping. |
|
Scott Hess - ex-Googler
2013/05/22 19:56:37
No, it's getting the line height from the font. I
sail
2013/05/22 20:23:55
The line height doesn't account for accents and st
Scott Hess - ex-Googler
2013/05/22 21:02:36
Yeah, but fields are doing this stuff somehow.
sail
2013/05/22 21:10:35
I'm not sure what this comment means.
|
| + if (chrome::IsInstantExtendedAPIEnabled()) |
| + line_height_ += 1; |
| + |
| DCHECK_GT(line_height_, 0); |
| } |