Hit test SVG line boxes
This patch is a partial merge of
http://wkrev.com/192020 by Antoine
Quint <
graouts@apple.com>.
Hit testing for SVG <text> elements was using the same code as hit
testing for regular HTML elements. However, in SVG, text elements should
only hit test based on their character cells, not the rectangular bounds
of the element, see section 16.6 of the SVG 1.1 specification:
http://www.w3.org/TR/SVG11/interact.html#PointerEventsProperty
We now hit test each SVGTextFragment of each SVGInlineTextBox that
is a child of an SVGRootInlineBox to correctly find whether the provided
HitTestLocation is contained within a character cell.
This patch is almost identical to the original patch but the tests have
been rewritten to be text-based reftests and to not rely on timeouts.
BUG=
551058
Committed:
https://crrev.com/e0b3579267bd648ded7ab13d2708296da5f92c02
Cr-Commit-Position: refs/heads/master@{#360197}