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

Unified Diff: chrome/browser/ui/views/toolbar/app_menu.cc

Issue 2448903002: Fix separator positioning in app menu dropdown in RTL. (Closed)
Patch Set: Created 4 years, 2 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/toolbar/app_menu.cc
diff --git a/chrome/browser/ui/views/toolbar/app_menu.cc b/chrome/browser/ui/views/toolbar/app_menu.cc
index 5547f62ad39a32eb43e95858ee1efe0138f69869..7d4eb63c42d9c82acbaca39e6216a756c0525620 100644
--- a/chrome/browser/ui/views/toolbar/app_menu.cc
+++ b/chrome/browser/ui/views/toolbar/app_menu.cc
@@ -163,7 +163,7 @@ class InMenuButtonBackground : public views::Background {
gfx::Rect bounds(view->GetLocalBounds());
if (type_ == LEADING_BORDER) {
gfx::ScopedRTLFlipCanvas scoped_canvas(
- canvas, view->width(), view->flip_canvas_on_paint_for_rtl_ui());
+ canvas, view->width(), !view->flip_canvas_on_paint_for_rtl_ui());
sky 2016/10/25 16:49:18 Please add a comment here as it isn't obvious why
Peter Kasting 2016/10/25 17:51:00 Updated comments for clarity.
canvas->FillRect(gfx::Rect(0, 0, 1, h),
BorderColor(view, views::Button::STATE_NORMAL));
bounds.Inset(gfx::Insets(0, 1, 0, 0));
« 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