Auto merge of #26072 - dralley:fix-assertion-layout2020, r=mrobinson

Ensure reference frame is popped in layout 2020

closes: #26066

Should be equivalent to https://github.com/servo/servo/pull/26063 for layout2020

---
<!-- Thank you for contributing to Servo! Please replace each `[ ]` by `[X]` when the step is complete, and replace `___` with appropriate data: -->
- [x] `./mach build -d` does not report any errors
- [ ] `./mach test-tidy` does not report any errors
- [x] These changes fix #26066 (GitHub issue number if applicable)

<!-- Either: -->
- [ ] There are tests for these changes OR
- [ ] These changes do not require tests because ___
This commit is contained in:
bors-servo 2020-03-31 14:16:00 -04:00 committed by GitHub
commit 148c24c29c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -522,6 +522,10 @@ impl BoxFragment {
StackingContextBuildMode::SkipHoisted,
);
}
if established_reference_frame {
builder.wr.pop_reference_frame();
}
}
fn adjust_spatial_id_for_positioning(&self, builder: &mut StackingContextBuilder) {