Skip to content

Commit

Permalink
style: Add writing mode dependency if special MozLength keywords are …
Browse files Browse the repository at this point in the history
…used.
  • Loading branch information
heycam committed Sep 14, 2017
1 parent b3ee1c7 commit 1346be5
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions components/style/values/computed/length.rs
Expand Up @@ -862,6 +862,10 @@ impl ToComputedValue for specified::MozLength {
MozLength::LengthOrPercentageOrAuto(lopoa.to_computed_value(context))
}
specified::MozLength::ExtremumLength(ref ext) => {
debug_assert!(context.for_non_inherited_property.is_some(),
"should check whether we're a non-inherited property");
context.rule_cache_conditions.borrow_mut()
.set_writing_mode_dependency(context.builder.writing_mode);
MozLength::ExtremumLength(ext.clone())
}
}
Expand Down

0 comments on commit 1346be5

Please sign in to comment.