Bug 1344947 - Update calls to push_scroll_layer with API change. r?jrmuizel draft
authorKartikaya Gupta <kgupta@mozilla.com>
Mon, 13 Mar 2017 10:26:17 -0400
changeset 497580 edb63c3b1802cba0d74ccf3e4118c507b7e86f20
parent 497579 6b6f866e73c7f84524b09da3d1b38c729057abda
child 497581 07bcb98787d65b9a10c635b59caedc9faec5b77e
push id48939
push userkgupta@mozilla.com
push dateMon, 13 Mar 2017 14:27:40 +0000
reviewersjrmuizel
bugs1344947
milestone55.0a1
Bug 1344947 - Update calls to push_scroll_layer with API change. r?jrmuizel MozReview-Commit-ID: C79eYx0bLkN
gfx/webrender_bindings/src/bindings.rs
--- a/gfx/webrender_bindings/src/bindings.rs
+++ b/gfx/webrender_bindings/src/bindings.rs
@@ -1033,17 +1033,17 @@ pub extern "C" fn wr_dp_push_stacking_co
                                clip_region2,
                                state.z_index,
                                Some(PropertyBinding::Value(*transform)),
                                None,
                                mix_blend_mode,
                                filters);
     state.frame_builder.dl_builder.push_scroll_layer(clip_region,
                                                      bounds.size,
-                                                     ServoScrollRootId(1));
+                                                     Some(ServoScrollRootId(1)));
 }
 
 #[no_mangle]
 pub extern "C" fn wr_dp_pop_stacking_context(state: &mut WrState) {
     assert!(unsafe { is_in_main_thread() });
     state.frame_builder.dl_builder.pop_scroll_layer();
     state.frame_builder.dl_builder.pop_stacking_context();
     //println!("pop_stacking {:?}", state.pipeline_id);
@@ -1061,17 +1061,17 @@ pub extern "C" fn wr_dp_push_scroll_laye
             image: image,
             rect: rect.to_rect(),
             repeat: repeat,
         }
     });
     let clip_region = state.frame_builder.dl_builder.new_clip_region(&overflow, vec![], mask);
     state.frame_builder.dl_builder.push_scroll_layer(clip_region,
                                                      bounds.size,
-                                                     ServoScrollRootId(1));
+                                                     Some(ServoScrollRootId(1)));
 }
 
 #[no_mangle]
 pub extern "C" fn wr_dp_pop_scroll_layer(state: &mut WrState) {
     assert!(unsafe { is_in_main_thread() });
     state.frame_builder.dl_builder.pop_scroll_layer();
 }