mirror of
https://github.com/servo/servo.git
synced 2025-07-23 07:13:52 +01:00
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:
parent
253117ece6
commit
7d672555be
1 changed files with 5 additions and 0 deletions
|
@ -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) => {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue