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

Issue 1870983002: Only hit-test SVG <text> foreground (Closed)

Created:
4 years, 8 months ago by fs
Modified:
4 years, 8 months ago
Reviewers:
pdr.
CC:
darktears, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-layout_chromium.org, chromium-reviews, krit, eae+blinkwatch, Eric Willigers, f(malita), fs, gyuyoung2, jchaffraix+rendering, kouhei+svg_chromium.org, leviw+renderwatch, pdr+svgwatchlist_chromium.org, pdr+renderingwatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, szager+layoutwatch_chromium.org, zoltan1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Only hit-test SVG <text> foreground <text> doesn't have/paint any background, so performing hit-tests for the various background is a both a waste of time, and gives rise to bugs in some cases where poor precision renders false positives. This also matches what LayoutSVGShape does (and <text> is a "graphics element" just like the basic shapes.) Rework the 'pointer-events: bounding-box' check to not rely on nodeAtPoint. It's now somewhat consistent with how containers (<g>) are handled. This also affects how hit-testing works w/ 'textLength' ("artificial" spaces will no longer be considered part of the <text> - this matches the Firefox behavior.) Adjust svg/animations/svgenum-animation-3.html to cater to this change in behavior. BUG=601036 Committed: https://crrev.com/d44cc5eb0dd3240a5feef91f4ec09b5ae1ac5e5c Cr-Commit-Position: refs/heads/master@{#386308}

Patch Set 1 #

Patch Set 2 : Rebase; return early. #

Total comments: 2

Patch Set 3 : Test fixup #

Unified diffs Side-by-side diffs Delta from patch set Stats (+71 lines, -4 lines) Patch
M third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js View 1 2 1 chunk +3 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/hittest/text-small-font-size.html View 1 chunk +49 lines, -0 lines 0 comments Download
A third_party/WebKit/LayoutTests/svg/hittest/text-small-font-size-expected.txt View 1 chunk +5 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/layout/svg/LayoutSVGText.cpp View 1 2 2 chunks +14 lines, -4 lines 0 comments Download

Messages

Total messages: 11 (4 generated)
fs
4 years, 8 months ago (2016-04-08 12:27:40 UTC) #2
pdr.
LGTM https://codereview.chromium.org/1870983002/diff/20001/third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js File third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js (right): https://codereview.chromium.org/1870983002/diff/20001/third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js#newcode4 third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js:4: var clickX = 1; It looks like this ...
4 years, 8 months ago (2016-04-08 21:36:29 UTC) #4
fs
https://codereview.chromium.org/1870983002/diff/20001/third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js File third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js (right): https://codereview.chromium.org/1870983002/diff/20001/third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js#newcode4 third_party/WebKit/LayoutTests/svg/animations/script-tests/svgenum-animation-3.js:4: var clickX = 1; On 2016/04/08 at 21:36:29, pdr ...
4 years, 8 months ago (2016-04-09 19:32:29 UTC) #5
pdr.
lgtm
4 years, 8 months ago (2016-04-09 20:12:28 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1870983002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1870983002/40001
4 years, 8 months ago (2016-04-09 20:12:38 UTC) #8
commit-bot: I haz the power
Committed patchset #3 (id:40001)
4 years, 8 months ago (2016-04-09 20:40:35 UTC) #9
commit-bot: I haz the power
4 years, 8 months ago (2016-04-09 20:41:42 UTC) #11
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/d44cc5eb0dd3240a5feef91f4ec09b5ae1ac5e5c
Cr-Commit-Position: refs/heads/master@{#386308}

Powered by Google App Engine
This is Rietveld 408576698