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

Issue 2179643002: Fix infobar painting issues at fractional scales (Closed)

Created:
4 years, 5 months ago by Evan Stade
Modified:
4 years, 4 months ago
Reviewers:
Bret, Peter Kasting
CC:
chromium-reviews, tfarina
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix infobar painting issues at fractional scales This calculates the paths for the infobar background (which paints the arrow) with the scale factor taken into account. It fixes blurriness in the arrow as well as a gap above the infobar (you can see both issues in a screenshot in the linked bug report). It should have no impact on whole number DSFs (1x, 2x, etc) BUG=627601 Committed: https://crrev.com/21e70f121e72154c9891b061e9724ef30e1aecb9 Cr-Commit-Position: refs/heads/master@{#408498}

Patch Set 1 #

Patch Set 2 : comment #

Total comments: 12

Patch Set 3 : reason for floor #

Patch Set 4 : bsep #

Total comments: 1

Patch Set 5 : fiddle #

Total comments: 10

Patch Set 6 : pkasting review #

Total comments: 8

Patch Set 7 : pkasting review 2 #

Total comments: 2

Patch Set 8 : pkasting final review #

Unified diffs Side-by-side diffs Delta from patch set Stats (+34 lines, -39 lines) Patch
M chrome/browser/ui/views/frame/browser_view_layout.cc View 1 chunk +0 lines, -1 line 0 comments Download
M chrome/browser/ui/views/infobars/infobar_background.cc View 1 2 3 4 5 6 7 1 chunk +34 lines, -38 lines 0 comments Download

Messages

Total messages: 30 (13 generated)
Evan Stade
4 years, 4 months ago (2016-07-25 21:41:00 UTC) #3
Peter Kasting
It might be good to put some screenshots on the bug to help explain the ...
4 years, 4 months ago (2016-07-25 22:21:21 UTC) #8
Bret
Basically looks good. Ditto Peter's comments. Does this work for 1.25? https://codereview.chromium.org/2179643002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): ...
4 years, 4 months ago (2016-07-25 22:35:31 UTC) #9
Peter Kasting
https://codereview.chromium.org/2179643002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode84 chrome/browser/ui/views/infobars/infobar_background.cc:84: // Always scale to a whole number to make ...
4 years, 4 months ago (2016-07-25 22:38:27 UTC) #10
Evan Stade
https://codereview.chromium.org/2179643002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/20001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode78 chrome/browser/ui/views/infobars/infobar_background.cc:78: // The fill for the arrow On 2016/07/25 22:21:21, ...
4 years, 4 months ago (2016-07-25 23:16:48 UTC) #11
Evan Stade
> Does this work for 1.25? it does now. It works for all tested DSFs: ...
4 years, 4 months ago (2016-07-25 23:23:26 UTC) #15
Bret
lgtm
4 years, 4 months ago (2016-07-25 23:27:58 UTC) #16
Peter Kasting
https://codereview.chromium.org/2179643002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode97 chrome/browser/ui/views/infobars/infobar_background.cc:97: // is sharper without this adjustment. This is actually ...
4 years, 4 months ago (2016-07-26 00:02:34 UTC) #17
Evan Stade
On 2016/07/26 00:02:34, Peter Kasting wrote: > https://codereview.chromium.org/2179643002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc > File chrome/browser/ui/views/infobars/infobar_background.cc (right): > > https://codereview.chromium.org/2179643002/diff/60001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode97 ...
4 years, 4 months ago (2016-07-26 19:57:01 UTC) #18
Peter Kasting
https://codereview.chromium.org/2179643002/diff/80001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/80001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode94 chrome/browser/ui/views/infobars/infobar_background.cc:94: // length n + 1. Is this because n ...
4 years, 4 months ago (2016-07-26 22:41:02 UTC) #19
Evan Stade
https://codereview.chromium.org/2179643002/diff/80001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/80001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode94 chrome/browser/ui/views/infobars/infobar_background.cc:94: // length n + 1. On 2016/07/26 22:41:01, Peter ...
4 years, 4 months ago (2016-07-27 19:39:21 UTC) #20
Peter Kasting
LGTM https://codereview.chromium.org/2179643002/diff/100001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2179643002/diff/100001/chrome/browser/ui/views/find_bar_view.cc#newcode94 chrome/browser/ui/views/find_bar_view.cc:94: const int kDefaultCharWidthMd = 30; This will go ...
4 years, 4 months ago (2016-07-28 19:41:31 UTC) #21
Evan Stade
https://codereview.chromium.org/2179643002/diff/100001/chrome/browser/ui/views/find_bar_view.cc File chrome/browser/ui/views/find_bar_view.cc (right): https://codereview.chromium.org/2179643002/diff/100001/chrome/browser/ui/views/find_bar_view.cc#newcode94 chrome/browser/ui/views/find_bar_view.cc:94: const int kDefaultCharWidthMd = 30; On 2016/07/28 19:41:30, Peter ...
4 years, 4 months ago (2016-07-28 21:13:25 UTC) #22
Peter Kasting
Cool, I like your idea. Thumbs up! https://codereview.chromium.org/2179643002/diff/120001/chrome/browser/ui/views/infobars/infobar_background.cc File chrome/browser/ui/views/infobars/infobar_background.cc (right): https://codereview.chromium.org/2179643002/diff/120001/chrome/browser/ui/views/infobars/infobar_background.cc#newcode95 chrome/browser/ui/views/infobars/infobar_background.cc:95: // length ...
4 years, 4 months ago (2016-07-28 21:18:52 UTC) #23
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/2179643002/140001
4 years, 4 months ago (2016-07-28 21:23:49 UTC) #26
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 4 months ago (2016-07-28 22:26:02 UTC) #28
commit-bot: I haz the power
4 years, 4 months ago (2016-07-28 22:28:18 UTC) #30
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/21e70f121e72154c9891b061e9724ef30e1aecb9
Cr-Commit-Position: refs/heads/master@{#408498}

Powered by Google App Engine
This is Rietveld 408576698