WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
264669
Do not synchronously measure SVG text every time it changes
https://bugs.webkit.org/show_bug.cgi?id=264669
Summary
Do not synchronously measure SVG text every time it changes
Ahmad Saleem
Reported
2023-11-11 05:16:30 PST
Hi team, While going through Blink's commit, I came across another potential optimization but I haven't confirmed whether it is something applicable in WebKit realm or not. Blink Commit:
https://chromium.googlesource.com/chromium/src.git/+/34c351416a102e4ee510badb86fbc4f57604ccd0
WebKit Source:
https://searchfox.org/wubkat/rev/3e2262b3476ecfb5666a35bcdd746d474c061b0d/Source/WebCore/rendering/svg/RenderSVGText.cpp#286
Just wanted to raise to get an input from others. ____ It compiles: // The positioning elements cache depends on the size of each text renderer in the // subtree. If this changes, clear the cache and mark it for rebuilding in the next layout. m_layoutAttributesBuilder.clearTextPositioningElements(); setNeedsPositioningValuesUpdate(); setNeedsLayout(); _____ Thanks!
Attachments
Add attachment
proposed patch, testcase, etc.
Vitor Roriz
Comment 1
2023-11-15 05:32:17 PST
Cool. I can check if break anything and/or have a significant performance boost with that change. Thank you!
Radar WebKit Bug Importer
Comment 2
2023-11-15 06:08:07 PST
<
rdar://problem/118451741
>
Vitor Roriz
Comment 3
2023-12-04 07:25:39 PST
Pull request:
https://github.com/WebKit/WebKit/pull/21278
EWS
Comment 4
2023-12-07 09:40:58 PST
Committed
271678@main
(97f84b2e6bd1): <
https://commits.webkit.org/271678@main
> Reviewed commits have been landed. Closing PR #21278 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