mirror of
https://github.com/RGBCube/serenity
synced 2025-05-28 17:55:09 +00:00
LibGfx: Unpublish FloatPoint from the global namespace
This commit is contained in:
parent
5c2028db24
commit
8bb75084fd
5 changed files with 5 additions and 7 deletions
|
@ -135,12 +135,12 @@ void LayoutNode::set_needs_display()
|
|||
}
|
||||
}
|
||||
|
||||
FloatPoint LayoutNode::box_type_agnostic_position() const
|
||||
Gfx::FloatPoint LayoutNode::box_type_agnostic_position() const
|
||||
{
|
||||
if (is_box())
|
||||
return to<LayoutBox>(*this).position();
|
||||
ASSERT(is_inline());
|
||||
FloatPoint position;
|
||||
Gfx::FloatPoint position;
|
||||
if (auto* block = containing_block()) {
|
||||
block->for_each_fragment([&](auto& fragment) {
|
||||
if (&fragment.layout_node() == this || is_ancestor_of(fragment.layout_node())) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue