mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 07:08:10 +00:00
LibWeb: Use Layout::Node::display() everywhere
This commit is contained in:
parent
49eb324535
commit
13834cfdff
6 changed files with 24 additions and 33 deletions
|
@ -197,11 +197,11 @@ void LayoutState::UsedValues::set_node(NodeWithStyleAndBoxModelMetrics& node, Us
|
|||
if (size.is_auto()) {
|
||||
// NOTE: The width of a non-flex-item block is considered definite if it's auto and the containing block has definite width.
|
||||
if (width
|
||||
&& node.computed_values().display().is_block_outside()
|
||||
&& node.display().is_block_outside()
|
||||
&& node.parent()
|
||||
&& !node.parent()->is_floating()
|
||||
&& (node.parent()->computed_values().display().is_flow_root_inside()
|
||||
|| node.parent()->computed_values().display().is_flow_inside())) {
|
||||
&& (node.parent()->display().is_flow_root_inside()
|
||||
|| node.parent()->display().is_flow_inside())) {
|
||||
if (containing_block_has_definite_size) {
|
||||
float available_width = containing_block_used_values->content_width();
|
||||
resolved_definite_size = available_width
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue