Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1050)

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_win.cc

Issue 10399074: Cleanup: Rename GetHeight to more appropriate GetPreferredInternalHeight. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/views/omnibox/omnibox_view_win.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
index 782c9b01c4280186eb221ddfc7bfef57ae682438..ac045c7e8d1b0194e194e013d0845cb73fc5fb74 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_win.cc
@@ -506,7 +506,8 @@ OmniboxViewWin::OmniboxViewWin(AutocompleteEditController* controller,
// We set font_y_adjustment_ so that the ascender of the font gets
// centered on the available height of the view.
- font_y_adjustment_ = (parent_view->GetHeight() - cap_height) / 2 -
+ font_y_adjustment_ =
+ (parent_view->GetPreferredInternalHeight() - cap_height) / 2 -
tm.tmInternalLeading;
// Get the number of twips per pixel, which we need below to offset our text

Powered by Google App Engine
This is Rietveld 408576698