DescriptionHandle multiple fragments in the getCharNumberAtPosition SVGTextQuery
The start position (and thus indirectly end position) used to compute the
extents of a glyph to check against the point is computed based on the
'processedCharacter' query data state. Said state is only updated after
each text box has been processed, meaning that for a text box with
multiple fragments, the offset of the fragment within the box needs to be
included to get the correct start/end position.
BUG=387725
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=176936
Patch Set 1 #Patch Set 2 : Remove redundant line from test. #
Messages
Total messages: 7 (0 generated)
|