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

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

Issue 25039002: Always aligns text at vertically center (Textfield, Label). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced. Created 7 years, 2 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_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index b87a6af911c01413bd1068aa676188d3d7afd284..c19c794ace828344dd0b64ce313db3a9742a8f26 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -130,8 +130,7 @@ OmniboxViewViews::OmniboxViewViews(OmniboxEditController* controller,
CommandUpdater* command_updater,
bool popup_window_mode,
LocationBarView* location_bar,
- const gfx::FontList& font_list,
- int font_y_offset)
+ const gfx::FontList& font_list)
: OmniboxView(profile, controller, command_updater),
popup_window_mode_(popup_window_mode),
security_level_(ToolbarModel::NONE),
@@ -145,8 +144,6 @@ OmniboxViewViews::OmniboxViewViews(OmniboxEditController* controller,
RemoveBorder();
set_id(VIEW_ID_OMNIBOX);
SetFontList(font_list);
- SetVerticalMargins(font_y_offset, 0);
- SetVerticalAlignment(gfx::ALIGN_TOP);
}
OmniboxViewViews::~OmniboxViewViews() {
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_view_views.h ('k') | chrome/browser/ui/views/omnibox/omnibox_views.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698