Auto merge of #8186 - Ms2ger:rm-clone, r=nox

Remove an unnecessary Atom::clone() call.



<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/8186)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2015-10-25 05:09:11 -05:00
commit 4b5bc4f9a9

View file

@ -945,7 +945,7 @@ impl LayoutTask {
// TODO: we will return neither the computed nor used value for margin and padding.
// Firefox returns blank strings for the computed value of shorthands,
// so this should be web-compatible.
match property.clone() {
match *property {
atom!("margin-bottom") | atom!("margin-top") |
atom!("margin-left") | atom!("margin-right") |
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());
},
// FIXME: implement used value computation for line-height
property => {
ref property => {
rw_data.resolved_style_response =
style.computed_value_to_string(property.as_slice()).ok();
}