servo: Merge #15949 - Don't serialize url() twice (from upsuper:filter-url); r=heycam

Source-Repo: https://github.com/servo/servo
Source-Revision: 6a2a5be7641dbda2391f4fff7c102f0176899562

--HG--
extra : subtree_source : https%3A//hg.mozilla.org/projects/converted-servo-linear
extra : subtree_revision : b61b739b87d69e98417cb32e341463f384d492b0
This commit is contained in:
Xidorn Quan 2017-03-14 21:43:41 -07:00
parent f3242f83fb
commit 40c2227517

View File

@ -266,9 +266,7 @@ ${helpers.predefined_type("clip",
try!(dest.write_str(")"));
}
computed_value::Filter::Url(ref url) => {
dest.write_str("url(")?;
url.to_css(dest)?;
dest.write_str(")")?;
}
% endif
}
@ -311,9 +309,7 @@ ${helpers.predefined_type("clip",
try!(dest.write_str(")"));
}
SpecifiedFilter::Url(ref url) => {
dest.write_str("url(")?;
url.to_css(dest)?;
dest.write_str(")")?;
}
% endif
}