mirror of
https://github.com/servo/servo.git
synced 2025-06-24 00:54:32 +01:00
implements nsStyleQuoteValues type properties animatable
This commit is contained in:
parent
7d1374e019
commit
0555977c66
2 changed files with 12 additions and 1 deletions
|
@ -3303,6 +3303,17 @@ fn static_assert() {
|
|||
unsafe { self.gecko.mQuotes.set(&other.gecko.mQuotes); }
|
||||
}
|
||||
|
||||
pub fn clone_quotes(&self) -> longhands::quotes::computed_value::T {
|
||||
unsafe {
|
||||
let ref gecko_quote_values = *self.gecko.mQuotes.mRawPtr;
|
||||
longhands::quotes::computed_value::T(
|
||||
gecko_quote_values.mQuotePairs.iter().map(|gecko_pair| {
|
||||
(gecko_pair.first.to_string(), gecko_pair.second.to_string())
|
||||
}).collect()
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn set__moz_image_region(&mut self, v: longhands::_moz_image_region::computed_value::T) {
|
||||
use values::Either;
|
||||
|
|
|
@ -142,7 +142,7 @@ ${helpers.single_keyword("list-style-position", "outside inside", animation_valu
|
|||
}
|
||||
</%helpers:longhand>
|
||||
|
||||
<%helpers:longhand name="quotes" animation_value_type="none"
|
||||
<%helpers:longhand name="quotes" animation_value_type="discrete"
|
||||
spec="https://drafts.csswg.org/css-content/#propdef-quotes">
|
||||
use cssparser::serialize_string;
|
||||
use std::fmt;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue