-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simplify SVGTextQuery::modifyStartEndPositionsRespectingLigatures
https://bugs.webkit.org/show_bug.cgi?id=262458 Reviewed by Chris Dumez. Merge: https://src.chromium.org/viewvc/blink?view=revision&revision=177231 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 268656@main). * Source/WebCore/rendering/svg/SVGTextQuery.cpp: (SVGTextQuery::mapStartEndPositionsIntoFragmentCoordinates): (SVGTextQuery::modifyStartEndPositionsRespectingLigatures): * Source/WebCore/rendering/svg/SVGTextQuery.h: Canonical link: https://commits.webkit.org/268751@main
- Loading branch information
1 parent
6a5dbe0
commit 006900d
Showing
2 changed files
with
25 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters