Branch: refs/heads/main
  Home:   https://github.com/WebKit/WebKit
  Commit: 64f73a0819df5029b12093ee88a3c8f10442b15d
      
https://github.com/WebKit/WebKit/commit/64f73a0819df5029b12093ee88a3c8f10442b15d
  Author: Megan Gardner <[email protected]>
  Date:   2026-08-05 (Wed, 05 Aug 2026)

  Changed paths:
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-ranges-expected.txt
    M 
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/HighlightRegistry-highlightsFromPoint-expected.txt
    M Source/WebCore/Modules/highlight/HighlightRegistry.cpp

  Log Message:
  -----------
  [Custom Highlight] Implement HighlightRegistry.highlightsFromPoint() 
hit-testing.
https://bugs.webkit.org/show_bug.cgi?id=320987
rdar://184019794

Reviewed by Wenson Hsieh.

Implements the highlightsFromPoint() algorithm for light-DOM highlights. For 
each
registered highlight, tests the query point against the client-space rects of 
each
of its ranges (via RenderObject::clientBorderAndTextRects), skipping collapsed 
ranges
and invalidated StaticRanges, and rejecting points outside the viewport. 
Results are
ordered top-most first: by highlight priority descending, then by registration 
order
descending for equal priorities.

imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint.html
imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-ranges.html

* 
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-ranges-expected.txt:
* 
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/HighlightRegistry-highlightsFromPoint-expected.txt:
* Source/WebCore/Modules/highlight/HighlightRegistry.cpp:
(WebCore::HighlightRegistry::highlightsFromPoint):

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



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

Reply via email to