Auto merge of #15212 - upsuper:filter-drop-shadow, r=emilio

Use whitespace to separate params of drop-shadow

<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/15212)
<!-- Reviewable:end -->
This commit is contained in:
bors-servo 2017-01-26 11:48:06 -08:00 committed by GitHub
commit 0fa5f2e21f

View file

@ -458,11 +458,11 @@ ${helpers.predefined_type("opacity",
computed_value::Filter::DropShadow(shadow) => {
try!(dest.write_str("drop-shadow("));
try!(shadow.offset_x.to_css(dest));
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(shadow.offset_y.to_css(dest));
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(shadow.blur_radius.to_css(dest));
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(shadow.color.to_css(dest));
try!(dest.write_str(")"));
}
@ -496,12 +496,12 @@ ${helpers.predefined_type("opacity",
SpecifiedFilter::DropShadow(ref shadow) => {
try!(dest.write_str("drop-shadow("));
try!(shadow.offset_x.to_css(dest));
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(shadow.offset_y.to_css(dest));
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(shadow.blur_radius.to_css(dest));
if let Some(ref color) = shadow.color {
try!(dest.write_str(", "));
try!(dest.write_str(" "));
try!(color.to_css(dest));
}
try!(dest.write_str(")"));