Fix failing assertion -- failure to pop reference frame

closes #23438
This commit is contained in:
Daniel Alley 2020-03-29 18:06:48 -04:00
parent 15d8c6058b
commit 3258bcaa8b
3 changed files with 9 additions and 6 deletions

View file

@ -186,7 +186,7 @@ impl DisplayItem {
);
IsContentful(false)
},
DisplayItem::PushStackingContext(ref mut item) => {
DisplayItem::PushStackingContext(ref item) => {
let stacking_context = &item.stacking_context;
debug_assert_eq!(stacking_context.context_type, StackingContextType::Real);
@ -252,8 +252,11 @@ impl DisplayItem {
builder.push_item(&WrDisplayItem::PushStackingContext(wr_item));
IsContentful(false)
},
DisplayItem::PopStackingContext(_) => {
DisplayItem::PopStackingContext(ref item) => {
builder.pop_stacking_context();
if item.established_reference_frame {
builder.pop_reference_frame();
}
IsContentful(false)
},
DisplayItem::DefineClipScrollNode(ref mut item) => {