|
Fix link highlights on links that contain images.
Link highlights are now generated by walking down the render tree and
accumulating quads, rather than taking one bounding quad.
The real issue was with RenderInlines; absoluteQuads would return the
quads for the line box but only as calculated from line-height and font
metrics. This meant that replaced elements like <img> would overflow out of
the highlight. With this approach we get a highlight that hopefully
matches the actual hit testing region.
BUG= 289764
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=165024
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+119 lines, -65 lines) |
Patch |
 |
M |
LayoutTests/TestExpectations
|
View
|
1
2
|
1 chunk |
+2 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/gesture-tapHighlight-img.html
|
View
|
|
2 chunks |
+1 line, -2 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-and-text.html
|
View
|
1
2
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
A + |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-and-text-2.html
|
View
|
1
2
|
2 chunks |
+6 lines, -4 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-and-text-2-expected.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
A |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-and-text-expected.html
|
View
|
1
2
|
1 chunk |
+26 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-expected.html
|
View
|
1
2
|
1 chunk |
+8 lines, -17 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-transformed.html
|
View
|
|
1 chunk |
+0 lines, -1 line |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/gesture-tapHighlight-img-transformed-expected.html
|
View
|
1
2
|
1 chunk |
+6 lines, -19 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/resources/link-highlight-helper.js
|
View
|
|
1 chunk |
+5 lines, -0 lines |
0 comments
|
Download
|
 |
M |
LayoutTests/compositing/gestures/resources/link-highlight-style.css
|
View
|
|
1 chunk |
+4 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/LinkHighlight.h
|
View
|
1
2
3
|
2 chunks |
+3 lines, -0 lines |
0 comments
|
Download
|
 |
M |
Source/web/LinkHighlight.cpp
|
View
|
1
2
3
|
3 chunks |
+24 lines, -2 lines |
0 comments
|
Download
|
 |
M |
Source/web/WebViewImpl.cpp
|
View
|
|
1 chunk |
+2 lines, -16 lines |
0 comments
|
Download
|
Total messages: 12 (0 generated)
|