mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
style: bonus point: only add the condition when computing reset properties.
This commit is contained in:
parent
60511611bb
commit
ee49f0eaec
1 changed files with 7 additions and 5 deletions
|
@ -132,11 +132,13 @@ impl FontRelativeLength {
|
||||||
|
|
||||||
match *self {
|
match *self {
|
||||||
FontRelativeLength::Em(length) => {
|
FontRelativeLength::Em(length) => {
|
||||||
if matches!(base_size, FontBaseSize::CurrentStyle) {
|
if context.for_non_inherited_property.is_some() {
|
||||||
context.rule_cache_conditions.borrow_mut()
|
if matches!(base_size, FontBaseSize::CurrentStyle) {
|
||||||
.set_font_size_dependency(
|
context.rule_cache_conditions.borrow_mut()
|
||||||
reference_font_size.into()
|
.set_font_size_dependency(
|
||||||
);
|
reference_font_size.into()
|
||||||
|
);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
(reference_font_size, length)
|
(reference_font_size, length)
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue