Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 27a74ff8ea3eb998f9c751d749e1097096e80381
https://github.com/WebKit/WebKit/commit/27a74ff8ea3eb998f9c751d749e1097096e80381
Author: Ahmad Saleem <[email protected]>
Date: 2025-12-05 (Fri, 05 Dec 2025)
Changed paths:
M Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp
Log Message:
-----------
Optimize SVGTextLayoutAttributesBuilder rotation attribute handling
https://bugs.webkit.org/show_bug.cgi?id=303279
rdar://165585366
Reviewed by Brent Fulgham.
The fillCharacterDataMap() method was using a two-pass approach for
handling rotation attributes: first iterating through explicit rotate
values, then a second loop to propagate the last rotation value to
remaining characters.
This patch optimizes the rotation handling to use a single-pass
approach by leveraging std::min() to automatically select the last
rotation value when the index exceeds the list size.
Also removes the now-unused updateCharacterData() helper function that
was specific to the old two-pass implementation.
Inspired by:
https://chromium.googlesource.com/chromium/src.git/+/d934544befc4375078bc94e24234a98c60c55b1a
* Source/WebCore/rendering/svg/SVGTextLayoutAttributesBuilder.cpp:
(WebCore::SVGTextLayoutAttributesBuilder::fillCharacterDataMap):
Canonical link: https://commits.webkit.org/304016@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications