Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 62c0076685e183447316868056dace66a5997a21
https://github.com/WebKit/WebKit/commit/62c0076685e183447316868056dace66a5997a21
Author: Megan Gardner <[email protected]>
Date: 2026-08-03 (Mon, 03 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/css/css-highlight-api/idlharness.window-expected.txt
M
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/HighlightRegistry-highlightsFromPoint-expected.txt
M Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml
M Source/WebCore/CMakeLists.txt
M Source/WebCore/DerivedSources.make
A Source/WebCore/Modules/highlight/HighlightHitResult.h
A Source/WebCore/Modules/highlight/HighlightHitResult.idl
M Source/WebCore/Modules/highlight/HighlightRegistry.cpp
M Source/WebCore/Modules/highlight/HighlightRegistry.h
M Source/WebCore/Modules/highlight/HighlightRegistry.idl
A Source/WebCore/Modules/highlight/HighlightsFromPointOptions.h
A Source/WebCore/Modules/highlight/HighlightsFromPointOptions.idl
M Source/WebCore/Sources.txt
M Source/WebCore/WebCore.xcodeproj/project.pbxproj
Log Message:
-----------
[Custom Highlight API] Add the highlightsFromPoint() IDL surface behind a
feature flag.
https://bugs.webkit.org/show_bug.cgi?id=320922
rdar://183953883
Reviewed by Aditya Keerthi.
Add the interface surface for HighlightRegistry.highlightsFromPoint()
(https://drafts.csswg.org/css-highlight-api-1/) behind a new
HighlightsFromPointEnabled setting.
This is the first of a short series of patches: it establishes the IDL,
dictionaries, feature flag,
and a stub implementation, so the interface shape can be reviewed
independently. The hit-testing
algorithm that returns the highlights present at a point is added in a
follow-up.
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint.html
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/HighlightRegistry-highlightsFromPoint-ranges.html
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/HighlightRegistry-highlightsFromPoint.html
LayoutTests/imported/w3c/web-platform-tests/css/css-highlight-api/idlharness.window.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/css/css-highlight-api/idlharness.window-expected.txt:
*
LayoutTests/imported/w3c/web-platform-tests/shadow-dom/HighlightRegistry-highlightsFromPoint-expected.txt:
* Source/WTF/Scripts/Preferences/UnifiedWebPreferences.yaml:
* Source/WebCore/CMakeLists.txt:
* Source/WebCore/DerivedSources.make:
* Source/WebCore/Modules/highlight/HighlightHitResult.h: Copied from
Source/WebCore/Modules/highlight/HighlightRegistry.idl.
* Source/WebCore/Modules/highlight/HighlightHitResult.idl: Copied from
Source/WebCore/Modules/highlight/HighlightRegistry.idl.
* Source/WebCore/Modules/highlight/HighlightRegistry.cpp:
(WebCore::HighlightRegistry::highlightsFromPoint):
* Source/WebCore/Modules/highlight/HighlightRegistry.h:
* Source/WebCore/Modules/highlight/HighlightRegistry.idl:
* Source/WebCore/Modules/highlight/HighlightsFromPointOptions.h: Copied from
Source/WebCore/Modules/highlight/HighlightRegistry.idl.
* Source/WebCore/Modules/highlight/HighlightsFromPointOptions.idl: Copied from
Source/WebCore/Modules/highlight/HighlightRegistry.idl.
* Source/WebCore/Sources.txt:
* Source/WebCore/WebCore.xcodeproj/project.pbxproj:
Canonical link: https://commits.webkit.org/318510@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications