Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 11889f58e15f9058cabedee0edde5d2bc1ea8cde
      
https://github.com/WebKit/WebKit/commit/11889f58e15f9058cabedee0edde5d2bc1ea8cde
  Author: Tyler Wilcock <[email protected]>
  Date:   2025-08-08 (Fri, 08 Aug 2025)

  Changed paths:
    M Source/WebCore/accessibility/AXTextMarker.cpp

  Log Message:
  -----------
  AX: VoiceOver reports Safari Not Responding on pages with large chunks of 
text that contain at least one non-ASCII character
https://bugs.webkit.org/show_bug.cgi?id=297103
rdar://157814661

Reviewed by Chris Fleizach.

Prior to this commit, AXTextMarker::findLastBefore(AXID) would walk every 
single text position, offset-by-offset, until
it found the last object before the given AXID. Walking every single text 
position is completely unnecessary — we can
just walk entire objects at a time. This performance was especially bad for 
text that contained non-ASCII characters,
as that requires AXTextMarker::findMarker to create a CachedTextBreakIterator, 
which is hugely expensive.

* Source/WebCore/accessibility/AXTextMarker.cpp:
(WebCore::AXTextMarker::findLastBefore const):

Canonical link: https://commits.webkit.org/298389@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

Reply via email to