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

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: Remove GetInternalHeightImpl 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
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..962db208a59ab5c317ed5324cf540da0e4604841 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->GetInternalHeight(true) - cap_height) / 2 -
tm.tmInternalLeading;
// Get the number of twips per pixel, which we need below to offset our text
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698