DescriptionOnly 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 #
Messages
Total messages: 11 (4 generated)
|