summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/ui/views/location_bar/location_bar_view.cc7
1 files changed, 2 insertions, 5 deletions
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 bb54d96..4b5a4a0 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -458,11 +458,8 @@ void LocationBarView::SelectAll() {
gfx::Point LocationBarView::GetLocationBarAnchorPoint() const {
const views::ImageView* image = location_icon_view_->GetImageView();
- // The +1 in the next line creates a 1-px gap between icon and arrow tip.
- int icon_bottom = image->GetImageBounds().bottom() -
- GetLayoutConstant(ICON_LABEL_VIEW_TRAILING_PADDING) + 1;
- gfx::Point icon_center(image->GetImageBounds().CenterPoint());
- gfx::Point point(icon_center.x(), icon_bottom);
+ const gfx::Rect image_bounds(image->GetImageBounds());
+ gfx::Point point(image_bounds.CenterPoint().x(), image_bounds.bottom());
ConvertPointToTarget(image, this, &point);
return point;
}