Bug 240581 - [:has() pseudo-class] Invalidation fails if the mutated elements subtree has been marked invalid
Summary: [:has() pseudo-class] Invalidation fails if the mutated elements subtree has ...
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: WebKit Nightly Build
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Antti Koivisto
URL:
Keywords: InRadar
Depends on:
Blocks: 227702
  Show dependency treegraph
 
Reported: 2022-05-18 08:57 PDT by Antti Koivisto
Modified: 2022-05-18 12:22 PDT (History)
7 users (show)

See Also:


Attachments
Patch (60.98 KB, patch)
2022-05-18 09:03 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff
Patch (61.07 KB, patch)
2022-05-18 09:07 PDT, Antti Koivisto
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Antti Koivisto 2022-05-18 08:57:07 PDT
:has() can affect elements outside the subtree so we can't use this optimization if present.
Comment 1 Antti Koivisto 2022-05-18 09:03:24 PDT
Created attachment 459543 [details]
Patch
Comment 2 Antti Koivisto 2022-05-18 09:07:17 PDT
Created attachment 459544 [details]
Patch
Comment 3 EWS 2022-05-18 12:21:26 PDT
Committed r294423 (250706@main): <https://commits.webkit.org/250706@main>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 459544 [details].
Comment 4 Radar WebKit Bug Importer 2022-05-18 12:22:13 PDT
<rdar://problem/93519537>