Thanks to visit codestin.com
Credit goes to phabricator.services.mozilla.com

Page MenuHomePhabricator

Bug 1888098 - optimize nth-of dependency tracking for custom state r=dshin
ClosedPublic

Authored by keithamus on Mar 27 2024, 9:58 AM.
Referenced Files
Unknown Object (File)
Sat, Feb 21, 9:48 AM
Unknown Object (File)
Wed, Feb 4, 5:17 AM
Unknown Object (File)
Jan 29 2026, 5:43 PM
Unknown Object (File)
Nov 13 2025, 2:00 PM
Unknown Object (File)
Nov 8 2025, 10:05 AM
Unknown Object (File)
Nov 7 2025, 3:42 AM
Unknown Object (File)
Nov 4 2025, 10:30 AM
Unknown Object (File)
Nov 3 2025, 11:08 AM
Subscribers

Event Timeline

phab-bot changed the visibility from "Custom Policy" to "Public (No Login Required)".
phab-bot changed the edit policy from "Custom Policy" to "Restricted Project (Project)".
phab-bot removed a project: secure-revision.

@dshin this is a follow on from your comment here: https://phabricator.services.mozilla.com/D202460#inline-1136717.

This adds customstate tracking in CascadeData. I'm not sure how to write a test to verify this is doing the thing I hope it is, but it compiles and passers the existing customstatetests.

If you could point me in the right direction on where to write a test to confirm that'd be great.

Minor nitpicks, looks good otherwise. Thanks!

As for testing, yes it should be good as long as state-css-selector-nth-of.html holds.

servo/components/style/stylist.rs
2029

Shouldn't it be AtomIdent? It is the same thing for Gecko but it'd be nicer for Servo to backport.
Seems to be AtomIdent in CascadeData, which is where this borrow comes from, as well.

2153

Probably a good idea to add a comment why custom state special cases - i.e. It's invalid to consider :state() in a vacuum without considering what it's referring to (I don't think I worded it quite right, though...).

This revision is now accepted and ready to land.Mar 27 2024, 1:40 PM

This revision requires a Testing Policy Project Tag to be set before landing. Please apply one of testing-approved, testing-exception-unchanged, testing-exception-ui, testing-exception-elsewhere, testing-exception-other. Tip: this Firefox add-on makes it easy!

keithamus marked an inline comment as done.