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

Unified Diff: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc

Issue 2897533003: Change default ink drop center points to center of contents bounds (Closed)
Patch Set: fix compile Created 3 years, 7 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 | chrome/browser/ui/views/frame/browser_header_painter_ash.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
diff --git a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
index ce37e63e3dbf78cae113307a1998cf5fb894aa80..0eec44a5c0fd06e85781093b08ce3c8f38bf9e6f 100644
--- a/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
+++ b/chrome/browser/ui/views/bookmarks/bookmark_bar_view.cc
@@ -1079,11 +1079,8 @@ void BookmarkBarView::PaintChildren(const ui::PaintContext& context) {
// Since the drop indicator is painted directly onto the canvas, we must
// make sure it is painted in the right location if the locale is RTL.
- gfx::Rect indicator_bounds(x - kDropIndicatorWidth / 2,
- y,
- kDropIndicatorWidth,
- h);
- indicator_bounds.set_x(GetMirroredXForRect(indicator_bounds));
+ gfx::Rect indicator_bounds = GetMirroredRect(
+ gfx::Rect(x - kDropIndicatorWidth / 2, y, kDropIndicatorWidth, h));
ui::PaintRecorder recorder(context, size());
// TODO(sky/glen): make me pretty!
« no previous file with comments | « no previous file | chrome/browser/ui/views/frame/browser_header_painter_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698