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

Issue 2261593002: Use ScopedRTLFlipCanvas more pervasively for RTL flipping. (Closed)

Created:
4 years, 4 months ago by Peter Kasting
Modified:
4 years, 4 months ago
Reviewers:
sky
CC:
chromium-reviews, asanka, kalyank, sadrul, dbeam+watch-downloads_chromium.org, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Use ScopedRTLFlipCanvas more pervasively for RTL flipping. This helper already existed but was rarely used. Now we use it in more places, in the hopes of simpler/clearer code. To do this, I changed the API a bit. BUG=none TEST=none Committed: https://crrev.com/569dc35922520cee6ae9e874a9c4b03f3d456605 Cr-Commit-Position: refs/heads/master@{#413064}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix namespace #

Unified diffs Side-by-side diffs Delta from patch set Stats (+77 lines, -107 lines) Patch
M ash/common/system/tray/tray_popup_label_button_border.cc View 1 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/browser/ui/views/download/download_item_view.cc View 2 chunks +52 lines, -60 lines 0 comments Download
M chrome/browser/ui/views/toolbar/app_menu.cc View 2 chunks +5 lines, -4 lines 0 comments Download
M ui/gfx/paint_vector_icon.cc View 4 chunks +3 lines, -6 lines 0 comments Download
M ui/gfx/scoped_canvas.h View 2 chunks +4 lines, -6 lines 0 comments Download
M ui/gfx/scoped_canvas.cc View 1 chunk +4 lines, -3 lines 0 comments Download
M ui/views/controls/combobox/combobox.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/style/mac/combobox_background_mac.cc View 1 chunk +1 line, -1 line 0 comments Download
M ui/views/view.h View 1 chunk +2 lines, -7 lines 0 comments Download
M ui/views/view.cc View 1 chunk +2 lines, -10 lines 0 comments Download

Messages

Total messages: 17 (11 generated)
Peter Kasting
https://codereview.chromium.org/2261593002/diff/1/chrome/browser/ui/views/download/download_item_view.cc File chrome/browser/ui/views/download/download_item_view.cc (right): https://codereview.chromium.org/2261593002/diff/1/chrome/browser/ui/views/download/download_item_view.cc#newcode708 chrome/browser/ui/views/download/download_item_view.cc:708: gfx::ScopedRTLFlipCanvas scoped_canvas(canvas, width()); This file looks as if it's ...
4 years, 4 months ago (2016-08-18 23:40:41 UTC) #2
sky
Nice code savings!
4 years, 4 months ago (2016-08-19 03:39:58 UTC) #11
sky
LGTM
4 years, 4 months ago (2016-08-19 03:40:02 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2261593002/20001
4 years, 4 months ago (2016-08-19 05:26:29 UTC) #14
commit-bot: I haz the power
Committed patchset #2 (id:20001)
4 years, 4 months ago (2016-08-19 06:10:30 UTC) #15
commit-bot: I haz the power
4 years, 4 months ago (2016-08-19 06:14:31 UTC) #17
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/569dc35922520cee6ae9e874a9c4b03f3d456605
Cr-Commit-Position: refs/heads/master@{#413064}

Powered by Google App Engine
This is Rietveld 408576698