Give stacking contexts the right reference frame id

Stacking contexts that create reference frames should be created with
the positioning node set to the reference frames that surround them.
This commit is contained in:
Martin Robinson 2018-06-22 17:56:11 +02:00 committed by Glenn Watson
parent 253117ece6
commit 7d672555be

View file

@ -235,6 +235,7 @@ impl WebRenderDisplayItemConverter for DisplayItem {
info.rect.origin = LayoutPoint::zero();
info.clip_rect.origin = LayoutPoint::zero();
builder.push_clip_id(clip_id);
}
builder.push_stacking_context(
@ -245,6 +246,10 @@ impl WebRenderDisplayItemConverter for DisplayItem {
stacking_context.filters.clone(),
GlyphRasterSpace::Screen,
);
if stacking_context.established_reference_frame.is_some() {
builder.pop_clip_id();
}
},
DisplayItem::PopStackingContext(_) => builder.pop_stacking_context(),
DisplayItem::DefineClipScrollNode(ref item) => {