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

Unified Diff: ui/views/controls/combobox/combobox.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/gfx/scoped_canvas.cc ('k') | ui/views/style/mac/combobox_background_mac.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/controls/combobox/combobox.cc
diff --git a/ui/views/controls/combobox/combobox.cc b/ui/views/controls/combobox/combobox.cc
index e247c2e68c1f9c9d890450caf260b0520df11bb6..b93b0bb875915527e3dc23fda12569f6f0682c4d 100644
--- a/ui/views/controls/combobox/combobox.cc
+++ b/ui/views/controls/combobox/combobox.cc
@@ -769,7 +769,7 @@ void Combobox::PaintText(gfx::Canvas* canvas) {
void Combobox::PaintButtons(gfx::Canvas* canvas) {
DCHECK(style_ == STYLE_ACTION);
- gfx::ScopedRTLFlipCanvas scoped_canvas(canvas, bounds());
+ gfx::ScopedRTLFlipCanvas scoped_canvas(canvas, width());
bool focused = HasFocus();
const std::vector<const gfx::ImageSkia*>& arrow_button_images =
« no previous file with comments | « ui/gfx/scoped_canvas.cc ('k') | ui/views/style/mac/combobox_background_mac.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698