DescriptionMake the findMetricsForCharacter SVGTextQuery-helper return an iterator
Convert the helper to return an iterator into the metrics vector. Then
use that new property in the calculateGlyphRange helper to avoid O(n^2)
runtime.
Also remove modifyStartEndPositionsRespectingLigatures, because all
users of it (indirectly through
mapStartEndPositionsIntoFragmentCoordinates) now uses the pre-computed
text metrics - which should account for the same thing automatically.
Also fix up the TODO in endPositionOfCharacterCallback by doing what it
says.
Committed: https://crrev.com/bd5d36e41e8ed061b646157465c91b4530b117d1
Cr-Commit-Position: refs/heads/master@{#382536}
Patch Set 1 #
Depends on Patchset: Dependent Patchsets: Messages
Total messages: 9 (4 generated)
|