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

Unified Diff: ui/views/style/mac/combobox_background_mac.cc

Issue 2261593002: Use ScopedRTLFlipCanvas more pervasively for RTL flipping. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix namespace Created 4 years, 4 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 | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/view.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/style/mac/combobox_background_mac.cc
diff --git a/ui/views/style/mac/combobox_background_mac.cc b/ui/views/style/mac/combobox_background_mac.cc
index d15be0838a9e55cd8a7ca226997904388a5e62c0..e9d73b19cf9111f9b370224a7a2f313102149624 100644
--- a/ui/views/style/mac/combobox_background_mac.cc
+++ b/ui/views/style/mac/combobox_background_mac.cc
@@ -22,7 +22,7 @@ ComboboxBackgroundMac::~ComboboxBackgroundMac() {}
void ComboboxBackgroundMac::Paint(gfx::Canvas* canvas, View* view) const {
gfx::RectF bounds(view->GetLocalBounds());
- gfx::ScopedRTLFlipCanvas scoped_canvas(canvas, view->bounds());
+ gfx::ScopedRTLFlipCanvas scoped_canvas(canvas, view->width());
// Inset the left side far enough to draw only the arrow button, and inset the
// other three sides by half a pixel so the edge of the background doesn't
« no previous file with comments | « ui/views/controls/combobox/combobox.cc ('k') | ui/views/view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698