diff options
Diffstat (limited to 'src/components/main/layout/construct.rs')
-rw-r--r-- | src/components/main/layout/construct.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/components/main/layout/construct.rs b/src/components/main/layout/construct.rs index f542edfe537..398a0479042 100644 --- a/src/components/main/layout/construct.rs +++ b/src/components/main/layout/construct.rs @@ -628,7 +628,7 @@ impl<'a> PostorderNodeMutTraversal for FlowConstructor<'a> { let (display, float, position) = match node.type_id() { ElementNodeTypeId(_) => { let style = node.style().get(); - (style.Box.display, style.Box.float, style.Box.position) + (style.Box.get().display, style.Box.get().float, style.Box.get().position) } TextNodeTypeId => (display::inline, float::none, position::static_), CommentNodeTypeId | @@ -730,7 +730,7 @@ impl<'ln> NodeUtils for ThreadSafeLayoutNode<'ln> { // // If you implement other values for this property, you will almost certainly // want to update this check. - match self.style().get().Text.white_space { + match self.style().get().InheritedText.get().white_space { white_space::normal => true, _ => false, } |