style: Recascade the document when rem units are used and the root font-size changes.

This commit is contained in:
Cameron McCormack 2017-06-03 13:18:43 +08:00
parent 7b61d55421
commit 19b61dfc08
6 changed files with 76 additions and 21 deletions

View file

@ -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]