aboutsummaryrefslogtreecommitdiffstats
path: root/components/layout_2020/positioned.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/layout_2020/positioned.rs')
-rw-r--r--components/layout_2020/positioned.rs4
1 files changed, 4 insertions, 0 deletions
diff --git a/components/layout_2020/positioned.rs b/components/layout_2020/positioned.rs
index 5a85733a603..2e4aebaf4c4 100644
--- a/components/layout_2020/positioned.rs
+++ b/components/layout_2020/positioned.rs
@@ -56,6 +56,10 @@ pub(crate) struct HoistedAbsolutelyPositionedBox {
}
impl AbsolutelyPositionedBox {
+ pub fn new(context: IndependentFormattingContext) -> Self {
+ Self { context }
+ }
+
pub fn construct<'dom>(
context: &LayoutContext,
node_info: &NodeAndStyleInfo<impl NodeExt<'dom>>,