Bug 1414271 - Update for API change in WR PR 1977. r?jrmuizel draft
authorKartikaya Gupta <kgupta@mozilla.com>
Tue, 07 Nov 2017 08:32:07 -0500
changeset 694166 d318e01aed71bc0deb2ee68e3f154e24051218d0
parent 694165 fd8935d6615ba62972894a797f6354018f740c47
child 694167 1d449f56472faa930276771c2e442db63e2b8b43
push id88062
push userkgupta@mozilla.com
push dateTue, 07 Nov 2017 13:38:30 +0000
reviewersjrmuizel
bugs1414271
milestone58.0a1
Bug 1414271 - Update for API change in WR PR 1977. r?jrmuizel MozReview-Commit-ID: Hcnlj0uFHN3
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -1336,17 +1336,18 @@ pub extern "C" fn wr_dp_define_sticky_fr
     assert!(unsafe { is_in_main_thread() });
     let clip_id = state.frame_builder.dl_builder.define_sticky_frame(
         None, content_rect, SideOffsets2D::new(
             unsafe { top_margin.as_ref() }.cloned(),
             unsafe { right_margin.as_ref() }.cloned(),
             unsafe { bottom_margin.as_ref() }.cloned(),
             unsafe { left_margin.as_ref() }.cloned()
         ),
-        vertical_bounds, horizontal_bounds);
+        vertical_bounds, horizontal_bounds,
+        LayoutVector2D::new(0.0, 0.0));
     match clip_id {
         ClipId::Clip(id, pipeline_id) => {
             assert!(pipeline_id == state.pipeline_id);
             id
         },
         _ => panic!("Got unexpected clip id type"),
     }
 }