style: Update image layer filling function call. draft
authorCameron McCormack <cam@mcc.id.au>
Mon, 20 Nov 2017 13:44:51 +0800
changeset 700445 6b113458dc490a814b3bd6fdf428d01a49ccb2b6
parent 700444 8cfd0b6f6c7bd9f32eae7fb9d48022498ee6d640
child 700446 8b920ebb6c41b3704b0d93d3970f6ea96be17258
push id89829
push userbmo:cam@mcc.id.au
push dateMon, 20 Nov 2017 05:57:50 +0000
milestone59.0a1
style: Update image layer filling function call. MozReview-Commit-ID: Kyz7w1SeJyV
servo/components/style/properties/gecko.mako.rs
--- a/servo/components/style/properties/gecko.mako.rs
+++ b/servo/components/style/properties/gecko.mako.rs
@@ -4067,26 +4067,26 @@ fn static_assert() {
         fill_fields = "mRepeat mClip mOrigin mPositionX mPositionY mImage mSize"
         if shorthand == "background":
             fill_fields += " mAttachment mBlendMode"
         else:
             # mSourceURI uses mImageCount
             fill_fields += " mMaskMode mComposite"
     %>
     pub fn fill_arrays(&mut self) {
-        use gecko_bindings::bindings::Gecko_FillAll${shorthand.title()}Lists;
+        use gecko_bindings::bindings::Gecko_FillAllImageLayers;
         use std::cmp;
         let mut max_len = 1;
         % for member in fill_fields.split():
             max_len = cmp::max(max_len, self.gecko.${image_layers_field}.${member}Count);
         % endfor
         unsafe {
             // While we could do this manually, we'd need to also manually
             // run all the copy constructors, so we just delegate to gecko
-            Gecko_FillAll${shorthand.title()}Lists(&mut self.gecko.${image_layers_field}, max_len);
+            Gecko_FillAllImageLayers(&mut self.gecko.${image_layers_field}, max_len);
         }
     }
 </%def>
 
 // TODO: Gecko accepts lists in most background-related properties. We just use
 // the first element (which is the common case), but at some point we want to
 // add support for parsing these lists in servo and pushing to nsTArray's.
 <% skip_background_longhands = """background-repeat