mirror of
https://github.com/servo/servo.git
synced 2025-08-03 20:50:07 +01:00
Remove an unnecessary Atom::clone() call.
This commit is contained in:
parent
47a8256c2c
commit
c86141c55a
1 changed files with 2 additions and 2 deletions
|
@ -945,7 +945,7 @@ impl LayoutTask {
|
||||||
// TODO: we will return neither the computed nor used value for margin and padding.
|
// TODO: we will return neither the computed nor used value for margin and padding.
|
||||||
// Firefox returns blank strings for the computed value of shorthands,
|
// Firefox returns blank strings for the computed value of shorthands,
|
||||||
// so this should be web-compatible.
|
// so this should be web-compatible.
|
||||||
match property.clone() {
|
match *property {
|
||||||
atom!("margin-bottom") | atom!("margin-top") |
|
atom!("margin-bottom") | atom!("margin-top") |
|
||||||
atom!("margin-left") | atom!("margin-right") |
|
atom!("margin-left") | atom!("margin-right") |
|
||||||
atom!("padding-bottom") | atom!("padding-top") |
|
atom!("padding-bottom") | atom!("padding-top") |
|
||||||
|
@ -1007,7 +1007,7 @@ impl LayoutTask {
|
||||||
rw_data.resolved_style_response = iterator.result.map(|r| r.to_css_string());
|
rw_data.resolved_style_response = iterator.result.map(|r| r.to_css_string());
|
||||||
},
|
},
|
||||||
// FIXME: implement used value computation for line-height
|
// FIXME: implement used value computation for line-height
|
||||||
property => {
|
ref property => {
|
||||||
rw_data.resolved_style_response =
|
rw_data.resolved_style_response =
|
||||||
style.computed_value_to_string(property.as_slice()).ok();
|
style.computed_value_to_string(property.as_slice()).ok();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue