mirror of
https://github.com/servo/servo.git
synced 2025-08-17 03:15:34 +01:00
style: Use a generic type in preparation to fix animation.
Apart from a bit more code reuse. Bug: 1455358 Reviewed-by: xidorn MozReview-Commit-ID: 2BNOK6v30lX
This commit is contained in:
parent
32d4da8a99
commit
737501153b
9 changed files with 158 additions and 120 deletions
|
@ -359,8 +359,8 @@ impl<'a, 'b: 'a> StyleAdjuster<'a, 'b> {
|
|||
#[cfg(feature = "gecko")]
|
||||
fn adjust_for_mathvariant(&mut self) {
|
||||
use properties::longhands::_moz_math_variant::computed_value::T as MozMathVariant;
|
||||
use properties::longhands::font_style::computed_value::T as FontStyle;
|
||||
use properties::longhands::font_weight::computed_value::T as FontWeight;
|
||||
use values::generics::font::FontStyle;
|
||||
if self.style.get_font().clone__moz_math_variant() != MozMathVariant::None {
|
||||
let font_style = self.style.mutate_font();
|
||||
font_style.set_font_weight(FontWeight::normal());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue