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

Unified Diff: chrome/browser/ui/views/location_bar/location_bar_view.cc

Issue 516943003: Add textfield internal padding from FocusableBorder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Shrink FocusableBorder; add Textfield and Combobox padding. Created 6 years, 4 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 | « no previous file | ui/views/controls/combobox/combobox.cc » ('j') | ui/views/controls/combobox/combobox.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/location_bar/location_bar_view.cc
diff --git a/chrome/browser/ui/views/location_bar/location_bar_view.cc b/chrome/browser/ui/views/location_bar/location_bar_view.cc
index 3c2dff689f14c533fbb6da81aeef349f70675aa1..af087f1cb620220a7c45ed4af25805683e32d7d4 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -664,7 +664,7 @@ gfx::Size LocationBarView::GetPreferredSize() const {
leading_width +=
kItemPadding + location_icon_view_->GetMinimumSize().width();
}
- leading_width += kItemPadding - GetEditLeadingInternalSpace();
+ leading_width += GetEditLeadingInternalSpace();
Peter Kasting 2014/08/29 21:09:11 Hmm, I worry about this implicitly assuming that k
msw 2014/08/30 00:17:48 Done :-/ I also fixed the inversion of GetEditLead
// Compute width of omnibox-trailing content.
int trailing_width = search_button_->visible() ?
@@ -677,7 +677,7 @@ gfx::Size LocationBarView::GetPreferredSize() const {
IncrementalMinimumWidth(zoom_view_) +
IncrementalMinimumWidth(generated_credit_card_view_) +
IncrementalMinimumWidth(mic_search_view_) +
- IncrementalMinimumWidth(add_to_app_launcher_view_) + kItemPadding;
+ IncrementalMinimumWidth(add_to_app_launcher_view_);
for (PageActionViews::const_iterator i(page_action_views_.begin());
i != page_action_views_.end(); ++i)
trailing_width += IncrementalMinimumWidth((*i));
@@ -701,10 +701,8 @@ void LocationBarView::Layout() {
keyword_hint_view_->SetVisible(false);
LocationBarLayout leading_decorations(
- LocationBarLayout::LEFT_EDGE,
- kItemPadding - GetEditLeadingInternalSpace());
- LocationBarLayout trailing_decorations(LocationBarLayout::RIGHT_EDGE,
- kItemPadding);
+ LocationBarLayout::LEFT_EDGE, -GetEditLeadingInternalSpace());
+ LocationBarLayout trailing_decorations(LocationBarLayout::RIGHT_EDGE, 0);
const int origin_chip_preferred_width =
origin_chip_view_->GetPreferredSize().width();
« no previous file with comments | « no previous file | ui/views/controls/combobox/combobox.cc » ('j') | ui/views/controls/combobox/combobox.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698