Return composed parent node. Fixes style sharing panics

This commit is contained in:
Fernando Jiménez Moreno 2019-02-18 17:49:52 +01:00
parent 07e2f41c34
commit efce2825b9

View file

@ -1228,7 +1228,7 @@ impl LayoutNodeHelpers for LayoutDom<Node> {
#[inline]
#[allow(unsafe_code)]
unsafe fn parent_node_ref(&self) -> Option<LayoutDom<Node>> {
(*self.unsafe_get()).parent_node.get_inner_as_layout()
(*self.unsafe_get()).composed_parent_node.get_inner_as_layout()
}
#[inline]