mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
Return composed parent node. Fixes style sharing panics
This commit is contained in:
parent
07e2f41c34
commit
efce2825b9
1 changed files with 1 additions and 1 deletions
|
@ -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]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue