Chromium Code Reviews
DescriptionScale focus outline thickness with zoom level.
Focus rings were only being scaled by the dsf, which after the launch of
use-zoom-for-dsf meant that they weren't being scaled at all. It seems
like we should keep the ring in proportion with the rest of the page, so
I changed it to scale with the total zoom level. In order to keep the
ring from vanishing when zoomed out, I floored its thickness at 1px.
Focus rings draw the same at 1x device scale. A subtle effect of this
patch is that elements will have their focus rings scaled by the css
zoom property.
BUG=651510
CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2
Committed: https://crrev.com/87ad798087aebf914351caab62a8cf072fe9d388
Cr-Commit-Position: refs/heads/master@{#424596}
Patch Set 1 #Patch Set 2 : fix imagemap outlines -- rebaselines incorrect #Patch Set 3 : correct rebaseline #Patch Set 4 : return if outline width is 0 #
Total comments: 8
Patch Set 5 : move focus ring width into ComputedStyle #Patch Set 6 : merge conflicts #Messages
Total messages: 25 (12 generated)
|