diff options
-rw-r--r-- | components/layout/fragment.rs | 2 | ||||
-rw-r--r-- | components/layout/wrapper.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/components/layout/fragment.rs b/components/layout/fragment.rs index f0c87eae068..dbf56c86b77 100644 --- a/components/layout/fragment.rs +++ b/components/layout/fragment.rs @@ -1537,7 +1537,7 @@ impl Fragment { match self.specific { InlineAbsoluteHypotheticalFragment(ref mut info) => { let block_flow = info.flow_ref.get_mut().as_block(); - block_flow.base.position.size.inline = + block_flow.base.position.size.inline = block_flow.base.intrinsic_inline_sizes.preferred_inline_size + block_flow.base.intrinsic_inline_sizes.surround_inline_size; diff --git a/components/layout/wrapper.rs b/components/layout/wrapper.rs index 2c31186846c..40a77935129 100644 --- a/components/layout/wrapper.rs +++ b/components/layout/wrapper.rs @@ -187,7 +187,7 @@ impl<'ln> TLayoutNode for LayoutNode<'ln> { unsafe { if self.get().is_text() { let text: JS<Text> = self.get_jsmanaged().transmute_copy(); - (*text.unsafe_get()).characterdata.data.borrow().clone() + (*text.unsafe_get()).characterdata.data.borrow().clone() } else if self.get().is_htmlinputelement() { let input: JS<HTMLInputElement> = self.get_jsmanaged().transmute_copy(); input.get_value_for_layout() |