mirror of
https://github.com/servo/servo.git
synced 2025-08-08 06:55:31 +01:00
Move CSSStyleDeclaration.GetPropertyValue logic to style
This commit is contained in:
parent
37340d0c26
commit
bd37f4e694
3 changed files with 59 additions and 60 deletions
|
@ -410,15 +410,6 @@ impl Shorthand {
|
|||
}
|
||||
}
|
||||
|
||||
/// Serializes possible shorthand value to String.
|
||||
pub fn serialize_shorthand_value_to_string<'a, I>(self, declarations: I, importance: Importance) -> String
|
||||
where I: IntoIterator<Item=&'a PropertyDeclaration>, I::IntoIter: Clone {
|
||||
let appendable_value = self.get_shorthand_appendable_value(declarations).unwrap();
|
||||
let mut result = String::new();
|
||||
append_declaration_value(&mut result, appendable_value, importance).unwrap();
|
||||
result
|
||||
}
|
||||
|
||||
/// Serializes possible shorthand name with value to input buffer given a list of longhand declarations.
|
||||
/// On success, returns true if shorthand value is written and false if no shorthand value is present.
|
||||
pub fn serialize_shorthand_to_buffer<'a, W, I>(self,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue