DescriptionSimplify range mapping computation in SVGTextQuery/SVGInlineTextBox
Reduce SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates to
a simple offset/base adjustment and an intersection (which is what it
did - just in an unnecessarily verbose way.)
In SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates, drop the
intersection code, and leave that to the SVGInlineTextBox method.
Move the call to modifyStartEndPositionsRespectingLigatures() after the
intersection, because we don't want to do any adjustments on an empty
range. This is ok because modifyStartEndPositionsRespectingLigatures()
should never expand the range outside of the fragment it operating on.
Moving the call means it needs to be adjusted to work on offsets within
the fragment, so do that.
BUG=471205, 470326
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=193017
Patch Set 1 #
Total comments: 2
Messages
Total messages: 9 (2 generated)
|