Chromium Code Reviews
DescriptionFix glass extension on MD for Win 7 and below.
This also makes visible (but minor) changes on non-MD (the color of the
innermost pixel of client edge shifts slightly). This is because we didn't
previously inset the glass enough for the light pixel of edge to be completely
inside the semitransparent client edge region.
This also fixes the glass extension if we were to scale up larger than 200%
somehow.
All of these problems were caused by incorrectly computing the necessary
extension. The biggest problem was that the code did not account for the
innermost 2 px of glass being a very light and then very dark pixel. We need to
inset by that amount additionally.
The code also used the wrong mechanism to convert DIPs to pixels, which I think
would have caused bugs on systems with multiple monitors with different DPI.
BUG=614146
TEST=Start Chrome on Win 7 and verify there are no bright or dark lines across the window just above the bottom of the tabstrip.
Committed: https://crrev.com/35ebe25ae437740f33a039fbf84af2855bc2f15b
Cr-Commit-Position: refs/heads/master@{#400316}
Patch Set 1 #Patch Set 2 : Finish #Patch Set 3 : Resync #Patch Set 4 : Resync #
Total comments: 1
Messages
Total messages: 15 (6 generated)
|
|||||||||||||||||||||||||||||||||||||