[webkit-changes] [WebKit/WebKit] 7b4093: Add fine-grained invalidation support for selector...
Antti Koivisto
noreply at github.com
Sat Aug 26 08:07:22 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 7b40932f6b2a3506f47da91e7cc0ebae2c9294ad
https://github.com/WebKit/WebKit/commit/7b40932f6b2a3506f47da91e7cc0ebae2c9294ad
Author: Antti Koivisto <antti at apple.com>
Date: 2023-08-26 (Sat, 26 Aug 2023)
Changed paths:
M Source/WebCore/style/RuleFeature.cpp
M Source/WebCore/style/RuleFeature.h
M Source/WebCore/style/StyleInvalidationFunctions.h
M Source/WebCore/style/StyleInvalidator.cpp
Log Message:
-----------
Add fine-grained invalidation support for selectors containing :slotted()
https://bugs.webkit.org/show_bug.cgi?id=260755
rdar://114480735
Reviewed by Alan Baradlay.
* Source/WebCore/style/RuleFeature.cpp:
(WebCore::Style::isSiblingOrSubject):
(WebCore::Style::computeNextMatchElement):
ShadowSlotted shadow-piercing combinator generates HostChild match element for invalidation purposes.
(WebCore::Style::computeHasPseudoClassMatchElement):
(WebCore::Style::RuleFeatureSet::recursivelyCollectFeaturesFromSelector):
* Source/WebCore/style/RuleFeature.h:
* Source/WebCore/style/StyleInvalidationFunctions.h:
(WebCore::Style::traverseRuleFeatures):
Remove now-unnessary slotted test that would lead to large invalidations.
* Source/WebCore/style/StyleInvalidator.cpp:
(WebCore::Style::Invalidator::invalidateStyleWithMatchElement):
Traverse host children for the HostChild match element.
Canonical link: https://commits.webkit.org/267326@main
More information about the webkit-changes
mailing list