Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 1053d8eb088342f96f0ff8a888b6eefedde46ef4
https://github.com/WebKit/WebKit/commit/1053d8eb088342f96f0ff8a888b6eefedde46ef4
Author: Antti Koivisto <[email protected]>
Date: 2025-09-08 (Mon, 08 Sep 2025)
Changed paths:
M Source/WebCore/style/ChildChangeInvalidation.cpp
M Source/WebCore/style/ClassChangeInvalidation.cpp
M Source/WebCore/style/RuleFeature.cpp
M Source/WebCore/style/RuleFeature.h
M Source/WebCore/style/StyleInvalidator.cpp
Log Message:
-----------
Limit the scope of invalidation traversal for `:has(.changed) > .subject`
https://bugs.webkit.org/show_bug.cgi?id=298442
rdar://problem/159946487
Reviewed by Alan Baradlay.
Similar to https://commits.webkit.org/299162@main, optimize `:has(.changed) >
.subject` too.
* Source/WebCore/style/ChildChangeInvalidation.cpp:
(WebCore::Style::ChildChangeInvalidation::invalidateForChangedElement):
* Source/WebCore/style/ClassChangeInvalidation.cpp:
(WebCore::Style::ClassChangeInvalidation::computeInvalidation):
* Source/WebCore/style/RuleFeature.cpp:
(WebCore::Style::isSiblingOrSubject):
(WebCore::Style::isScopeBreaking):
(WebCore::Style::computeHasPseudoClassMatchElement):
(WebCore::Style::computeSubSelectorMatchElement):
* Source/WebCore/style/RuleFeature.h:
Add a new enum value for this case.
Also added some documentation.
* Source/WebCore/style/StyleInvalidator.cpp:
(WebCore::Style::Invalidator::invalidateStyleWithMatchElement):
Traverse the direct children of the ancestors only.
Canonical link: https://commits.webkit.org/299685@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