| Index: chrome/browser/ui/views/location_bar/location_bar_layout.cc
|
| diff --git a/chrome/browser/ui/views/location_bar/location_bar_layout.cc b/chrome/browser/ui/views/location_bar/location_bar_layout.cc
|
| index d28201821314512c0194701164f07fbcd4dfdd36..34e858f8bf10c73830c7a027e765a1f19a09dc1c 100644
|
| --- a/chrome/browser/ui/views/location_bar/location_bar_layout.cc
|
| +++ b/chrome/browser/ui/views/location_bar/location_bar_layout.cc
|
| @@ -165,7 +165,10 @@ void LocationBarLayout::LayoutPass3(gfx::Rect* bounds, int* available_width) {
|
| if (position_ == LEFT_EDGE)
|
| bounds->set_x(bounds->x() + padding + decoration->computed_width);
|
| }
|
| - bounds->set_width(bounds->width() - item_edit_padding_);
|
| - if (position_ == LEFT_EDGE)
|
| - bounds->set_x(bounds->x() + item_edit_padding_);
|
| + // Only apply the edit padding if there's a visible decoration to pad against.
|
| + if (!first_visible) {
|
| + bounds->set_width(bounds->width() - item_edit_padding_);
|
| + if (position_ == LEFT_EDGE)
|
| + bounds->set_x(bounds->x() + item_edit_padding_);
|
| + }
|
| }
|
|
|