mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 12:58:12 +00:00
LibWeb: Make LineBoxFragment store non-const Layout::Node&
This is more honest, since we actually const_cast these layout nodes during inline layout anyway.
This commit is contained in:
parent
6a83475ec5
commit
88ca932fac
4 changed files with 8 additions and 8 deletions
|
@ -135,8 +135,8 @@ void InlineFormattingContext::run(LayoutMode layout_mode)
|
|||
}
|
||||
}
|
||||
|
||||
if (fragment.layout_node().is_box())
|
||||
dimension_box_on_line(const_cast<Box&>(downcast<Box>(fragment.layout_node())), layout_mode);
|
||||
if (is<Box>(fragment.layout_node()))
|
||||
dimension_box_on_line(downcast<Box>(fragment.layout_node()), layout_mode);
|
||||
|
||||
float final_line_box_width = 0;
|
||||
for (auto& fragment : line_box.fragments())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue