[Webkit-unassigned] [Bug 261651] SVGTextQuery Performance Optimizations
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Sun Sep 17 11:41:28 PDT 2023
https://bugs.webkit.org/show_bug.cgi?id=261651
--- Comment #3 from Ahmad Saleem <ahmad.saleem792 at gmail.com> ---
Created attachment 467724
--> https://bugs.webkit.org/attachment.cgi?id=467724&action=review
SVGTextQuery.cpp local file with changes from Blink Commits
Change in `SVGInlineTextBox.cpp`:
bool SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment& fragment, unsigned& startPosition, unsigned& endPosition) const
{
int fragmentOffsetInBox = static_cast<int>(fragment.characterOffset) - start();
// Compute positions relative to the fragment.
startPosition -= fragmentOffsetInBox;
endPosition -= fragmentOffsetInBox;
// Intersect with the fragment range.
startPosition = std::max<unsigned>(startPosition, 0);
endPosition = std::min<unsigned>(endPosition, static_cast<int>(fragment.length));
return startPosition < endPosition;
}
and attaching 'SVGTextQuery.cpp' file with all my changes from this.
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20230917/0613a3d3/attachment.htm>
More information about the webkit-unassigned
mailing list