mirror of
https://github.com/servo/servo.git
synced 2025-08-13 17:35:36 +01:00
Make word-spacing animatable.
This commit is contained in:
parent
c120b0b701
commit
f1642eb7a6
2 changed files with 17 additions and 1 deletions
|
@ -2902,6 +2902,19 @@ fn static_assert() {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn clone_word_spacing(&self) -> longhands::word_spacing::computed_value::T {
|
||||
use properties::longhands::word_spacing::computed_value::T;
|
||||
use values::computed::LengthOrPercentage;
|
||||
debug_assert!(
|
||||
matches!(self.gecko.mWordSpacing.as_value(),
|
||||
CoordDataValue::Normal |
|
||||
CoordDataValue::Coord(_) |
|
||||
CoordDataValue::Percent(_) |
|
||||
CoordDataValue::Calc(_)),
|
||||
"Unexpected computed value for word-spacing");
|
||||
T(LengthOrPercentage::from_gecko_style_coord(&self.gecko.mWordSpacing))
|
||||
}
|
||||
|
||||
<%call expr="impl_coord_copy('word_spacing', 'mWordSpacing')"></%call>
|
||||
|
||||
fn clear_text_emphasis_style_if_string(&mut self) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue