mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 05:37:34 +00:00
LibWeb: Relax unnecessarily narrow cast in Node::containing_block()
This commit is contained in:
parent
c42e949f5b
commit
df235d2c9f
1 changed files with 1 additions and 1 deletions
|
@ -88,7 +88,7 @@ Box const* Node::containing_block() const
|
||||||
ancestor = ancestor->parent();
|
ancestor = ancestor->parent();
|
||||||
while (ancestor && ancestor->is_anonymous())
|
while (ancestor && ancestor->is_anonymous())
|
||||||
ancestor = nearest_ancestor_capable_of_forming_a_containing_block(*ancestor);
|
ancestor = nearest_ancestor_capable_of_forming_a_containing_block(*ancestor);
|
||||||
return static_cast<BlockContainer const*>(ancestor);
|
return static_cast<Box const*>(ancestor);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (position == CSS::Position::Fixed)
|
if (position == CSS::Position::Fixed)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue