1
Fork 0
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:
Andreas Kling 2020-02-06 14:35:54 +01:00
parent 5c2028db24
commit 8bb75084fd
5 changed files with 5 additions and 7 deletions

View file

@ -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())) {