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

Issue 1912863002: Fix image map focus ring painting (Closed)

Created:
4 years, 8 months ago by Xianzhu
Modified:
4 years, 8 months ago
Reviewers:
pdr., dmazzoni, chrishtr
CC:
aboxhall+watch_chromium.org, aboxhall, blink-reviews, blink-reviews-html_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dglazkov+blink, dmazzoni+watch_chromium.org, dmazzoni, dshwang, drott+blinkwatch_chromium.org, krit, dtseng+watch_chromium.org, eae+blinkwatch, f(malita), haraken, jbroman, jchaffraix+rendering, je_julie, Justin Novosad, kinuko+watch, leviw+renderwatch, nektarios, nektar+watch_chromium.org, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, yuzo+watch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix image map focus ring painting Use correct paint offset and clip, and apply zoom factor. Some changes are based on https://bugs.webkit.org/show_bug.cgi?id=143527. BUG=475128 TEST=fast/images/imagemap-focus-ring-in-positioned-container.html TEST=fast/images/imagemap-focus-ring-with-paint-root-offset.html TEST=fast/images/imagemap-focus-ring-with-scale-transform.html TBR=dmazzoni@chromium.org (passive change under Source/modules/accessibility due to function renaming) Committed: https://crrev.com/3086ff0e791a9ed5d08f8a1c817eb3da36d19992 Cr-Commit-Position: refs/heads/master@{#389883}

Patch Set 1 #

Patch Set 2 : #

Total comments: 7

Patch Set 3 : #

Patch Set 4 : #

Total comments: 11

Patch Set 5 : #

Patch Set 6 : #

Total comments: 4

Patch Set 7 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+235 lines, -96 lines) Patch
M third_party/WebKit/LayoutTests/TestExpectations View 1 2 3 4 5 6 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html View 1 2 3 4 5 1 chunk +23 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container-expected.png View 3 4 5 6 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container-expected.txt View 1 2 3 4 5 6 1 chunk +18 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-paint-root-offset.html View 1 2 3 4 5 1 chunk +17 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-paint-root-offset-expected.png View 3 4 5 Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-paint-root-offset-expected.txt View 1 2 3 4 5 1 chunk +16 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-scale-transform.html View 1 2 3 4 5 1 chunk +19 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-scale-transform-expected.png View Binary file 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-with-scale-transform-expected.txt View 1 chunk +15 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-zoom-style-default-shape.html View 1 2 3 4 5 1 chunk +9 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-zoom-style-default-shape-expected.html View 1 2 3 4 1 chunk +9 lines, -0 lines 0 comments Download
M third_party/WebKit/LayoutTests/platform/linux/fast/images/imagemap-focus-ring-zoom-expected.png View Binary file 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAreaElement.h View 1 2 3 4 5 6 2 chunks +11 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLAreaElement.cpp View 1 2 3 4 5 6 3 chunks +71 lines, -66 lines 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMapElement.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/html/HTMLMapElement.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/HitTestResult.cpp View 1 2 3 4 1 chunk +1 line, -7 lines 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutImage.cpp View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/SpatialNavigation.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/ImagePainter.cpp View 1 2 3 4 2 chunks +11 lines, -8 lines 0 comments Download
M third_party/WebKit/Source/modules/accessibility/AXImageMapLink.cpp View 1 2 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 25 (9 generated)
Xianzhu
4 years, 8 months ago (2016-04-21 23:02:57 UTC) #2
pdr.
I like this approach overall as it's a nice cleanup. Just some small questions. https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html ...
4 years, 8 months ago (2016-04-23 03:32:23 UTC) #3
pdr.
https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html File third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html (right): https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html#newcode15 third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html:15: window.onload = function() { Nit: No need for onload ...
4 years, 8 months ago (2016-04-23 03:40:54 UTC) #4
Xianzhu
+chrishtr in case pdr is on trip. https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html File third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html (right): https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html#newcode1 third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html:1: <!DOCTYPE html> ...
4 years, 8 months ago (2016-04-25 23:18:16 UTC) #6
pdr.
On 2016/04/25 at 23:18:16, wangxianzhu wrote: > https://codereview.chromium.org/1912863002/diff/20001/third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html#newcode15 > third_party/WebKit/LayoutTests/fast/images/imagemap-focus-ring-in-positioned-container.html:15: window.onload = function() { > ...
4 years, 8 months ago (2016-04-25 23:44:15 UTC) #7
pdr.
https://codereview.chromium.org/1912863002/diff/60001/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp File third_party/WebKit/Source/core/html/HTMLAreaElement.cpp (right): https://codereview.chromium.org/1912863002/diff/60001/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp#newcode109 third_party/WebKit/Source/core/html/HTMLAreaElement.cpp:109: Path p = getPath(containerObject); Nit: p -> path https://codereview.chromium.org/1912863002/diff/60001/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp#newcode111 ...
4 years, 8 months ago (2016-04-26 01:29:35 UTC) #8
Xianzhu
No Ptal yet. I need to fix the zoom issue before uploading the new patch. ...
4 years, 8 months ago (2016-04-26 17:42:27 UTC) #9
Xianzhu
Done fixing zoom issue. Ptal.
4 years, 8 months ago (2016-04-26 18:27:27 UTC) #10
pdr.
This is getting really close. Just two small comments. https://codereview.chromium.org/1912863002/diff/100001/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp File third_party/WebKit/Source/core/html/HTMLAreaElement.cpp (right): https://codereview.chromium.org/1912863002/diff/100001/third_party/WebKit/Source/core/html/HTMLAreaElement.cpp#newcode124 third_party/WebKit/Source/core/html/HTMLAreaElement.cpp:124: ...
4 years, 8 months ago (2016-04-26 18:47:29 UTC) #11
Xianzhu
Have to use pixel test for all of the new tests. On Mac normal focus ...
4 years, 8 months ago (2016-04-26 19:25:03 UTC) #12
pdr.
On 2016/04/26 at 19:25:03, wangxianzhu wrote: > Have to use pixel test for all of ...
4 years, 8 months ago (2016-04-26 19:59:23 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912863002/120001
4 years, 8 months ago (2016-04-26 20:35:04 UTC) #15
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromium_presubmit/builds/173463)
4 years, 8 months ago (2016-04-26 20:42:50 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1912863002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1912863002/120001
4 years, 8 months ago (2016-04-26 21:04:57 UTC) #21
commit-bot: I haz the power
Committed patchset #7 (id:120001)
4 years, 8 months ago (2016-04-26 21:11:03 UTC) #23
commit-bot: I haz the power
4 years, 8 months ago (2016-04-26 21:12:29 UTC) #25
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/3086ff0e791a9ed5d08f8a1c817eb3da36d19992
Cr-Commit-Position: refs/heads/master@{#389883}

Powered by Google App Engine
This is Rietveld 408576698