mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-09 08:33:28 +02:00
Previously we could not create a `Length::ResolutionContext` using the `for_layout_node` method if the provided node's document did not have a layout node. We now provide a workaround for this in the case that the provided layout is that root layout node. This is useful for instance if we want to create a length resolution context when calling `NodeWithStyle::apply_style` on the root node.
15 KiB
15 KiB