Bug 1355578 - Update push_scroll_layer's signature on the Rust side to match that on the C++ side. r=jrmuizel

MozReview-Commit-ID: 9ouWihnNkbR
This commit is contained in:
Kartikaya Gupta 2017-04-11 16:13:58 -04:00
parent 1880bd37a5
commit 728e0fbb28

View File

@ -1153,9 +1153,10 @@ pub extern "C" fn wr_dp_pop_stacking_context(state: &mut WrState) {
pub extern "C" fn wr_dp_push_scroll_layer(state: &mut WrState,
bounds: WrRect,
overflow: WrRect,
mask: Option<&WrImageMask>) {
mask: *const WrImageMask) {
let bounds = bounds.to_rect();
let overflow = overflow.to_rect();
let mask = unsafe { mask.as_ref() };
let mask = mask.map(|&WrImageMask { image, ref rect, repeat }| {
ImageMask {
image: image,