DescriptionSimplify SVGTextQuery::modifyStartEndPositionsRespectingLigatures
Simplify this method by passing it the fragment in question, and then use
SVGTextFragment::metricsListOffset to get a reasonable starting point.
Rewrite the big loop into two simpler loops - one for each end-point.
This shaves another ~15% off the TC in the bug (on top of [1]).
[1] https://codereview.chromium.org/359783002/
BUG=267504
Committed: https://src.chromium.org/viewvc/blink?view=rev&revision=177231
Patch Set 1 #
Messages
Total messages: 5 (0 generated)
|