mirror of
https://github.com/servo/servo.git
synced 2025-08-06 14:10:11 +01:00
style: Recascade the document when rem units are used and the root font-size changes.
This commit is contained in:
parent
7b61d55421
commit
19b61dfc08
6 changed files with 76 additions and 21 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue