|
Make anchors mouse-focusable
Anchors are now also mouse-focusable, to be consistent with Gecko,
Trident and Presto. When an anchor is focused by mouse, the default
focus ring is not shown (unless tabindex is set), as before.
The expectation of fast/events/click-focus-anchor has changed as follows:
- a3 is also focusable by mouse, because it is a link.
- a7 is focused instead of p7 because a7 is focusable, and therefore get
the focus instead of the parent <p> element.
BUG= 388666
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=181127
Total comments: 6
Total comments: 20
Total comments: 1
Total comments: 2
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+217 lines, -43 lines) |
Patch |
|
M |
LayoutTests/fast/events/click-focus-anchor.html
|
View
|
1
2
3
4
5
|
2 chunks |
+18 lines, -10 lines |
0 comments
|
Download
|
|
M |
LayoutTests/fast/events/click-focus-anchor-expected.txt
|
View
|
1
2
3
4
5
|
1 chunk |
+11 lines, -5 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-anchor-has-ring.html
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-anchor-has-ring-expected.html
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-anchor-no-ring.html
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-anchor-no-ring-expected.html
|
View
|
1
2
3
4
5
|
1 chunk |
+14 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-svganchor-has-ring.html
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-svganchor-has-ring-expected.html
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-svganchor-no-ring.html
|
View
|
1
2
3
4
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/click-focus-svganchor-no-ring-expected.html
|
View
|
1
2
3
4
5
|
1 chunk |
+13 lines, -0 lines |
0 comments
|
Download
|
|
A |
LayoutTests/fast/events/resources/focus-anchor-by-mouse.js
|
View
|
1
2
3
4
5
|
1 chunk |
+7 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+5 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/dom/Element.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+15 lines, -1 line |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLAnchorElement.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLAnchorElement.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+17 lines, -3 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormControlElement.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/html/HTMLFormControlElement.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
1 chunk |
+6 lines, -16 lines |
0 comments
|
Download
|
|
M |
Source/core/rendering/RenderTheme.cpp
|
View
|
1
2
3
4
5
6
|
1 chunk |
+2 lines, -2 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGAElement.h
|
View
|
1
2
3
4
5
6
7
8
9
10
|
2 chunks |
+4 lines, -0 lines |
0 comments
|
Download
|
|
M |
Source/core/svg/SVGAElement.cpp
|
View
|
1
2
3
4
5
6
7
8
9
10
|
3 chunks |
+18 lines, -4 lines |
0 comments
|
Download
|
Total messages: 50 (1 generated)
|