aboutsummaryrefslogtreecommitdiffstats
path: root/components/style/restyle_hints.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/style/restyle_hints.rs')
-rw-r--r--components/style/restyle_hints.rs6
1 files changed, 6 insertions, 0 deletions
diff --git a/components/style/restyle_hints.rs b/components/style/restyle_hints.rs
index c9b8918b33c..acca66d6fdb 100644
--- a/components/style/restyle_hints.rs
+++ b/components/style/restyle_hints.rs
@@ -446,6 +446,12 @@ impl RestyleHint {
self.insert_from(&other)
}
+ /// Inserts the specified `CascadeHint`.
+ #[inline]
+ pub fn insert_cascade_hint(&mut self, cascade_hint: CascadeHint) {
+ self.recascade.insert(cascade_hint);
+ }
+
/// Returns whether this `RestyleHint` represents at least as much restyle
/// work as the specified one.
#[inline]