Bug 1329652. wr-bindings: Build the clip region explicitly. r=gfx?

We'll want this when adding mask support.
This commit is contained in:
Jeff Muizelaar 2017-01-09 10:03:34 -05:00
Родитель 3a26207249
Коммит 8c9b481358
1 изменённых файлов: 3 добавлений и 1 удалений

Просмотреть файл

@ -275,9 +275,11 @@ pub extern fn wr_dp_push_stacking_context(state:&mut WrState, bounds: WrRect, ov
let bounds = bounds.to_rect();
let overflow = overflow.to_rect();
let clip_region = state.frame_builder.dl_builder.new_clip_region(&overflow, vec![], None);
state.frame_builder.dl_builder.push_stacking_context(webrender_traits::ScrollPolicy::Scrollable,
bounds,
ClipRegion::simple(&overflow),
clip_region,
state.z_index,
transform,
&LayoutTransform::identity(),