Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 90a08da7d817e461150866f662643f913bb0b90f
      
https://github.com/WebKit/WebKit/commit/90a08da7d817e461150866f662643f913bb0b90f
  Author: Cole Carley <[email protected]>
  Date:   2026-04-15 (Wed, 15 Apr 2026)

  Changed paths:
    M Source/WebCore/editing/CachedMatchFinder.cpp
    M Source/WebCore/editing/ICUSearcher.cpp
    M Source/WebCore/editing/ICUSearcher.h

  Log Message:
  -----------
  Use usearch_previous when possible in CachedMatchFinder
https://bugs.webkit.org/show_bug.cgi?id=312333
rdar://174789271

Reviewed by Ryosuke Niwa.

Currently, when searching backwards during find in page, we
collect all the matches forwards, and iterate over that collection
backwards looking for a valid match. We do this because we don't have
access to usearch_previous on PlayStation.

This patch adds support for usearch_previous on other platforms, so
we don't have to take a performance hit in the common case.

* Source/WebCore/editing/CachedMatchFinder.cpp:
(WebCore::CachedMatchFinder::performSearch):
* Source/WebCore/editing/ICUSearcher.cpp:
(WebCore::ICUSearcher::previous):
* Source/WebCore/editing/ICUSearcher.h:

Canonical link: https://commits.webkit.org/311299@main



To unsubscribe from these emails, change your notification settings at 
https://github.com/WebKit/WebKit/settings/notifications

Reply via email to