WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
262488
Simplify range mapping computation in SVGTextQuery/SVGInlineTextBox
https://bugs.webkit.org/show_bug.cgi?id=262488
Summary
Simplify range mapping computation in SVGTextQuery/SVGInlineTextBox
Ahmad Saleem
Reported
2023-10-02 09:37:28 PDT
Simplify range mapping computation in SVGTextQuery/SVGInlineTextBox Blink Merge:
https://src.chromium.org/viewvc/blink?view=revision&revision=193017
_________ bool SVGInlineTextBox::mapStartEndPositionsIntoFragmentCoordinates(const SVGTextFragment& fragment, unsigned& startPosition, unsigned& endPosition) const { unsigned fragmentOffsetInBox = 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, fragment.length); return startPosition < endPosition; } ________ Just wanted to raise.
Attachments
Add attachment
proposed patch, testcase, etc.
Ahmad Saleem
Comment 1
2023-10-02 17:55:18 PDT
This simplification require pre-requisite to make SVG Text code to respect RTL etc. By doing 1-1 merge as below PR, it will leads to two failures:
https://github.com/WebKit/WebKit/pull/18514
Failing tests: imported/mozilla/svg/text/textpath-selection.svg imported/w3c/web-platform-tests/css/css-pseudo/textpath-selection-011.html ^ Both are genuine failures. I am letting my PR run through EWS fully to document failures (if any else) but I will look into further future merges and see what else I can do.
Radar WebKit Bug Importer
Comment 2
2023-10-09 09:38:17 PDT
<
rdar://problem/116683897
>
EWS
Comment 3
2023-10-17 14:00:04 PDT
Committed
269425@main
(8e69bb72e0ee): <
https://commits.webkit.org/269425@main
> Reviewed commits have been landed. Closing PR #18514 and removing active labels.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug