Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 22a11785b12816b4a100334c5fac7cb7c7205da8
https://github.com/WebKit/WebKit/commit/22a11785b12816b4a100334c5fac7cb7c7205da8
Author: Dominic Mazzoni <[email protected]>
Date: 2025-05-20 (Tue, 20 May 2025)
Changed paths:
M Source/WebCore/accessibility/AccessibilityRenderObject.cpp
Log Message:
-----------
AX: AccessibilityRenderObject::textRuns can get all character widths at once
https://bugs.webkit.org/show_bug.cgi?id=292905
rdar://151198015
Reviewed by Joshua Hoffman.
FontCascade::widthForCharacterInRun has a lot of overhead, so calling it in a
loop to
get each character width is inefficient. Instead, do what FontCascade does and
use the proper iterator to fill a GlyphBuffer for the whole text run at once.
Then, the width of each glyph and its corresponding character index can be
retrieved from the GlyphBuffer in a simple loop.
* Source/WebCore/accessibility/AccessibilityRenderObject.cpp:
(WebCore::AccessibilityRenderObject::textRuns):
Canonical link: https://commits.webkit.org/295190@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications
_______________________________________________
webkit-changes mailing list
[email protected]
https://lists.webkit.org/mailman/listinfo/webkit-changes