mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
Making fixes based on suggestions from nox and SimonSapin
This commit is contained in:
parent
47279179fa
commit
0985d7563f
2 changed files with 26 additions and 38 deletions
|
@ -699,11 +699,12 @@ impl Element {
|
|||
}
|
||||
|
||||
fn sync_property_with_attrs_style(&self) {
|
||||
let mut style_str = String::new();
|
||||
|
||||
if let &Some(ref declarations) = &*self.style_attribute().borrow() {
|
||||
style_str.push_str(&declarations.serialize());
|
||||
let style_str = if let &Some(ref declarations) = &*self.style_attribute().borrow() {
|
||||
declarations.serialize()
|
||||
}
|
||||
else {
|
||||
String::new()
|
||||
};
|
||||
|
||||
let new_style = AttrValue::String(style_str);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue