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

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

Issue 1832023002: Fix infobar arrow tip position on MD. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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 | no next file » | no next file with comments »
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 c488fb8a0782ccc1d43fb9fafe6b71ce77c13449..1fa3cb9f46fc9d8be2aa6e27c5eabcca0e3de5d1 100644
--- a/chrome/browser/ui/views/location_bar/location_bar_view.cc
+++ b/chrome/browser/ui/views/location_bar/location_bar_view.cc
@@ -459,11 +459,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;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698