From d8bbc7858622b6d9c278469aab701ca0b609cddf Mon Sep 17 00:00:00 2001 From: Daniel Baumann Date: Wed, 15 May 2024 05:35:49 +0200 Subject: Merging upstream version 126.0. Signed-off-by: Daniel Baumann --- layout/style/ServoStyleSet.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'layout/style/ServoStyleSet.h') diff --git a/layout/style/ServoStyleSet.h b/layout/style/ServoStyleSet.h index eee6cba0f7..f3159c97ec 100644 --- a/layout/style/ServoStyleSet.h +++ b/layout/style/ServoStyleSet.h @@ -476,6 +476,14 @@ class ServoStyleSet { void MaybeInvalidateRelativeSelectorClassDependency( const dom::Element&, const ServoElementSnapshotTable& aSnapshots); + /** + * Maybe invalidate if a modification to a Custom State might require us to + * restyle the relative selector it refers to. + */ + void MaybeInvalidateRelativeSelectorCustomStateDependency( + const dom::Element&, nsAtom* state, + const ServoElementSnapshotTable& aSnapshots); + /** * Maybe invalidate if a modification to an ID might require us to restyle * the relative selector it refers to. @@ -549,6 +557,12 @@ class ServoStyleSet { */ bool HasNthOfStateDependency(const dom::Element&, dom::ElementState) const; + /** + * Returns true if a change in Custom State on an element might require + * us to restyle the element's siblings. + */ + bool HasNthOfCustomStateDependency(const dom::Element&, nsAtom*) const; + /** * Restyle this element's siblings in order to propagate any potential change * in :nth-child(of) styling. -- cgit v1.2.3