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

Issue 2386033002: Scale focus outline thickness with zoom level. (Closed)

Created:
4 years, 2 months ago by Bret
Modified:
4 years, 2 months ago
Reviewers:
chrishtr
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), jbroman, Justin Novosad, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Scale 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 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+67 lines, -30 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 1 chunk +25 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ImagePainter.cpp View 1 2 3 4 2 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/ObjectPainter.cpp View 1 2 3 4 5 1 chunk +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/core/style/ComputedStyle.cpp View 1 2 3 4 5 1 chunk +14 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.h View 1 2 3 4 5 3 chunks +5 lines, -11 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsContext.cpp View 1 2 3 4 5 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.h View 1 2 1 chunk +4 lines, -1 line 0 comments Download
M third_party/WebKit/Source/platform/graphics/skia/SkiaUtils.cpp View 1 2 2 chunks +5 lines, -5 lines 0 comments Download

Messages

Total messages: 25 (12 generated)
Bret
4 years, 2 months ago (2016-10-01 23:30:47 UTC) #6
Bret
Seems like this breaks something about focusing on imagemaps. Hold off on reviewing this for ...
4 years, 2 months ago (2016-10-02 01:30:15 UTC) #7
Bret
On 2016/10/02 01:30:15, Bret Sepulveda wrote: > Seems like this breaks something about focusing on ...
4 years, 2 months ago (2016-10-05 23:00:49 UTC) #9
chrishtr
https://codereview.chromium.org/2386033002/diff/60001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp File third_party/WebKit/Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/2386033002/diff/60001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp#newcode222 third_party/WebKit/Source/core/paint/ObjectPainter.cpp:222: return style.outlineWidth(); Why this special case? Also, it apears ...
4 years, 2 months ago (2016-10-07 21:14:21 UTC) #10
Bret
https://codereview.chromium.org/2386033002/diff/60001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp File third_party/WebKit/Source/core/paint/ObjectPainter.cpp (right): https://codereview.chromium.org/2386033002/diff/60001/third_party/WebKit/Source/core/paint/ObjectPainter.cpp#newcode222 third_party/WebKit/Source/core/paint/ObjectPainter.cpp:222: return style.outlineWidth(); On 2016/10/07 21:14:21, chrishtr wrote: > Why ...
4 years, 2 months ago (2016-10-08 01:32:41 UTC) #11
chrishtr
lgtm
4 years, 2 months ago (2016-10-10 21:16:13 UTC) #12
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/2386033002/80001
4 years, 2 months ago (2016-10-11 19:25:45 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/84350) ios-simulator on master.tryserver.chromium.mac (JOB_FAILED, ...
4 years, 2 months ago (2016-10-11 19:28:05 UTC) #16
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/2386033002/100001
4 years, 2 months ago (2016-10-11 21:58:37 UTC) #19
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 2 months ago (2016-10-11 23:36:14 UTC) #21
commit-bot: I haz the power
Patchset 6 (id:??) landed as https://crrev.com/87ad798087aebf914351caab62a8cf072fe9d388 Cr-Commit-Position: refs/heads/master@{#424596}
4 years, 2 months ago (2016-10-11 23:42:45 UTC) #23
loyso (OOO)
It has produced bad tests expectations here: https://codereview.chromium.org/2405343003 for color-suggestion-picker-appearance-zoom200 test :( I'll disable the ...
4 years, 2 months ago (2016-10-12 05:46:00 UTC) #24
loyso (OOO)
4 years, 2 months ago (2016-10-12 06:02:12 UTC) #25
Message was sent while issue was closed.
https://bugs.chromium.org/p/chromium/issues/detail?id=654999

Powered by Google App Engine
This is Rietveld 408576698