summaryrefslogtreecommitdiffstats
path: root/layout/style/ServoStyleSet.h
diff options
context:
space:
mode:
Diffstat (limited to 'layout/style/ServoStyleSet.h')
-rw-r--r--layout/style/ServoStyleSet.h14
1 files changed, 14 insertions, 0 deletions
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
@@ -477,6 +477,14 @@ class ServoStyleSet {
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.
*/
@@ -550,6 +558,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.
*/