New issue
Advanced search Search tips

Issue 610359 link

Starred by 1 user

Issue metadata

Status: Fixed
Owner:
Closed: May 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows , Chrome
Pri: 2
Type: Bug

Blocking:
issue 495654



Sign in to add a comment

md toolbar color doesn't fill all the way to separator at >= 2x scales

Project Member Reported by est...@chromium.org, May 9 2016

Issue description

perhaps having something to do with the separator being 1px (not 1dp), the toolbar fill color doesn't go far enough down. See attachment of 3x scale factor --- there are a couple empty rows of pixels at the bottom.

This is the opaque browser frame, not sure if other browser frames have this problem.
 
9ODCmiJGxTT.png
13.7 KB View Download
Blocking: 495654
Cc: pkasting@chromium.org
Components: UI>Browser>Toolbar
I could swear I tested this on 2x and didn't see this (I assume it repros there too, just with 1 px).  Either I'm incompetent or this regressed...

Comment 2 by est...@chromium.org, May 13 2016

well I only tested on Linux, I guess there's a chance this only applies there?
Tested my trunk build on Win 10 with --force-device-scale-factor=2 and didn't see any issues with a custom theme (to force the opaque frame) or the default theme (which uses the glass frame).

Were you using something with native high DPI?  Perhaps that works differently than --force-device-scale-factor somehow for this purpose?

Does the problem also show up with custom themes that use the opaque frame, or only the native theme?

Comment 4 by est...@chromium.org, May 13 2016

> Does the problem also show up with custom themes that use the opaque frame, or only the native theme?

I'm only seeing it on classic theme.

> Were you using something with native high DPI?

no, I was using the flag.

I think I found an important clue --- it seems to only happen when the floating bookmark bar is present. I bet it's that bar which is painting a pixel too high. PaintDetachedBookmarkBar is the culprit I bet. BrowserView::Paint1pxHorizontalLine needs to paint the 1px line at the top of the dp area instead of the bottom in this case.
Good find.  I can repro on Win with the glass frame with the detached bookmark bar (by default my Chromium build starts up with a couple infobars, in which case this doesn't happen).  So that's definitely the critical bit here.

I didn't think through your last sentence very closely; I'd just make sure that, when switching tabs back and forth between an NTP with detached bookmark bar, and a "normal" page, the bottom divider of the toolbar doesn't appear to shift up and down at all.

Comment 7 by est...@chromium.org, May 16 2016

Status: Fixed (was: Assigned)
should be fixed

Sign in to add a comment