diff --git a/components/script/dom/node.rs b/components/script/dom/node.rs index 7f8c2b611ce..24a50a8b4ad 100644 --- a/components/script/dom/node.rs +++ b/components/script/dom/node.rs @@ -1228,7 +1228,7 @@ impl LayoutNodeHelpers for LayoutDom { #[inline] #[allow(unsafe_code)] unsafe fn parent_node_ref(&self) -> Option> { - (*self.unsafe_get()).parent_node.get_inner_as_layout() + (*self.unsafe_get()).composed_parent_node.get_inner_as_layout() } #[inline]