servo: Merge #15212 - Use whitespace to separate params of drop-shadow (from upsuper:filter-drop-shadow); r=emilio
authorXidorn Quan <me@upsuper.org>
Thu, 26 Jan 2017 11:48:06 -0800
changeset 340657 05321bfcf7b81d7399d224779b93a2657600b4b9
parent 340656 1faaf10cfea191bfd38f6ab8b419af6700b98480
child 340658 fc50a559a23609730db4028c3c2f1456c6a89799
push id31307
push usergszorc@mozilla.com
push dateSat, 04 Feb 2017 00:59:06 +0000
treeherdermozilla-central@94079d43835f [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersemilio
servo: Merge #15212 - Use whitespace to separate params of drop-shadow (from upsuper:filter-drop-shadow); r=emilio Source-Repo: https://github.com/servo/servo Source-Revision: 0fa5f2e21f938c8e643d8840bd37716da5f8a115
servo/components/style/properties/longhand/effects.mako.rs
--- a/servo/components/style/properties/longhand/effects.mako.rs
+++ b/servo/components/style/properties/longhand/effects.mako.rs
@@ -453,21 +453,21 @@
                 computed_value::Filter::Invert(value) => try!(write!(dest, "invert({})", value)),
                 computed_value::Filter::Opacity(value) => try!(write!(dest, "opacity({})", value)),
                 computed_value::Filter::Saturate(value) => try!(write!(dest, "saturate({})", value)),
                 computed_value::Filter::Sepia(value) => try!(write!(dest, "sepia({})", value)),
                 % if product == "gecko":
                 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(")"));
                 }
                 % endif
             }
             Ok(())
         }
     }
@@ -491,22 +491,22 @@
                 SpecifiedFilter::Invert(value) => try!(write!(dest, "invert({})", value)),
                 SpecifiedFilter::Opacity(value) => try!(write!(dest, "opacity({})", value)),
                 SpecifiedFilter::Saturate(value) => try!(write!(dest, "saturate({})", value)),
                 SpecifiedFilter::Sepia(value) => try!(write!(dest, "sepia({})", value)),
                 % if product == "gecko":
                 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(")"));
                 }
                 % endif
             }
             Ok(())
         }