Simplify DownloadItemView::Layout() and CalculatePreferredSize().
This also fixes some bugs: * Non-normal modes still used the file name + status label heights for the preferred label height, instead of an appropriate other 2-line label. * There was no padding between labels and dropdown button. * Various RTL positions and widths could be computed wrong. Bug: none Change-Id: Ie330c5daf4ed553a382db4bd8ca4d759972599d4 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2333370Reviewed-by:David Trainor <dtrainor@chromium.org> Commit-Queue: Peter Kasting <pkasting@chromium.org> Auto-Submit: Peter Kasting <pkasting@chromium.org> Cr-Commit-Position: refs/heads/master@{#795100}
Showing
Please register or sign in to comment