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

Issue 129643002: Fix link highlights on links that contain images. (Closed)

Created:
6 years, 11 months ago by bokan
Modified:
6 years, 11 months ago
CC:
blink-reviews
Base URL:
https://chromium.googlesource.com/chromium/blink.git@master
Visibility:
Public.

Description

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

Patch Set 1 #

Patch Set 2 : #

Total comments: 2

Patch Set 3 : #

Patch Set 4 : #

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

Messages

Total messages: 12 (0 generated)
bokan
6 years, 11 months ago (2014-01-08 22:31:57 UTC) #1
wjmaclean
lgtm - thanks David!
6 years, 11 months ago (2014-01-08 23:08:02 UTC) #2
bokan
6 years, 11 months ago (2014-01-09 00:10:47 UTC) #3
aelias_OOO_until_Jul13
https://codereview.chromium.org/129643002/diff/30001/Source/web/LinkHighlight.cpp File Source/web/LinkHighlight.cpp (right): https://codereview.chromium.org/129643002/diff/30001/Source/web/LinkHighlight.cpp#newcode199 Source/web/LinkHighlight.cpp:199: for (unsigned i = 0; i < outQuads.size(); ++i) ...
6 years, 11 months ago (2014-01-11 00:22:45 UTC) #4
bokan
Alexandre, PTAL. I've removed the containsQuad checks and opted instead to not add the quads ...
6 years, 11 months ago (2014-01-13 15:52:00 UTC) #5
bokan
On 2014/01/13 15:52:00, bokan wrote: > Alexandre, PTAL. I've removed the containsQuad checks and opted ...
6 years, 11 months ago (2014-01-13 17:08:10 UTC) #6
aelias_OOO_until_Jul13
lgtm, thanks.
6 years, 11 months ago (2014-01-13 17:37:10 UTC) #7
aelias_OOO_until_Jul13
Ah okay, missed your last update.
6 years, 11 months ago (2014-01-13 17:37:59 UTC) #8
bokan
On 2014/01/13 17:37:59, aelias wrote: > Ah okay, missed your last update. Sorry about that. ...
6 years, 11 months ago (2014-01-13 19:13:12 UTC) #9
aelias_OOO_until_Jul13
still lgtm
6 years, 11 months ago (2014-01-13 22:19:13 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bokan@chromium.org/129643002/200002
6 years, 11 months ago (2014-01-13 22:40:17 UTC) #11
commit-bot: I haz the power
6 years, 11 months ago (2014-01-14 04:27:41 UTC) #12
Message was sent while issue was closed.
Change committed as 165024

Powered by Google App Engine
This is Rietveld 408576698