Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: cf0468947fe56137cbb01541acb7c3ea6add7337
https://github.com/WebKit/WebKit/commit/cf0468947fe56137cbb01541acb7c3ea6add7337
Author: Anne van Kesteren <[email protected]>
Date: 2026-03-28 (Sat, 28 Mar 2026)
Changed paths:
M Source/WebCore/dom/Node.cpp
M Source/WebCore/dom/StaticRange.cpp
M Source/WebCore/dom/StaticRange.h
M Tools/Scripts/webkitpy/api_tests/allowlist.txt
M Tools/TestWebKitAPI/TestWebKitAPI.xcodeproj/project.pbxproj
A Tools/TestWebKitAPI/Tests/WebCore/StaticRangeValidity.cpp
Log Message:
-----------
Fix StaticRange::computeValidity() for collapsed and disconnected ranges
https://bugs.webkit.org/show_bug.cgi?id=310905
Reviewed by Chris Dumez.
The only consumer (highlights) treats invalid and collapsed ranges the
same way so testing this with an API test.
The change to connectedInSameTreeScope() is correct for VisiblePosition
as well as it doesn't want disconnected nodes to count as connected
either.
Canonical link: https://commits.webkit.org/310159@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications