[webkit-changes] [WebKit/WebKit] e721d5: [:has() pseudo-class] Support invalidation for :de...
Tim Nguyen
noreply at github.com
Fri May 26 13:30:30 PDT 2023
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: e721d57b1ff83bb33a587aafc023aa2588f80fe2
https://github.com/WebKit/WebKit/commit/e721d57b1ff83bb33a587aafc023aa2588f80fe2
Author: Tim Nguyen <ntim at apple.com>
Date: 2023-05-26 (Fri, 26 May 2023)
Changed paths:
A LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/defined-in-has-expected.txt
A LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/defined-in-has.html
M Source/WebCore/dom/Element.cpp
Log Message:
-----------
[:has() pseudo-class] Support invalidation for :defined pseudo class
https://bugs.webkit.org/show_bug.cgi?id=257385
rdar://109896689
Reviewed by Ryosuke Niwa.
Use PseudoClassChangeInvalidation instead of manually invalidating the subtree, which does not take in account :has().
* LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/defined-in-has-expected.txt: Added.
* LayoutTests/imported/w3c/web-platform-tests/css/selectors/invalidation/defined-in-has.html: Added.
* Source/WebCore/dom/Element.cpp:
(WebCore::Node::setCustomElementState):
(WebCore::Element::setIsDefinedCustomElement):
Canonical link: https://commits.webkit.org/264602@main
More information about the webkit-changes
mailing list