Skip to content

Commit

Permalink
LibGfx: Unpublish FloatSize from the global namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
awesomekling committed Feb 6, 2020
1 parent 8505d8d commit 5c2028d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 4 deletions.
2 changes: 0 additions & 2 deletions Libraries/LibGfx/FloatSize.h
Original file line number Diff line number Diff line change
Expand Up @@ -115,5 +115,3 @@ inline const LogStream& operator<<(const LogStream& stream, const FloatSize& val
}

}

using Gfx::FloatSize;
2 changes: 1 addition & 1 deletion Libraries/LibHTML/Layout/LayoutBox.h
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ class LayoutBox : public LayoutNodeWithStyleAndBoxModelMetrics {
float y() const { return rect().y(); }
float width() const { return rect().width(); }
float height() const { return rect().height(); }
FloatSize size() const { return rect().size(); }
Gfx::FloatSize size() const { return rect().size(); }
FloatPoint position() const { return rect().location(); }

virtual HitTestResult hit_test(const Gfx::Point& position) const override;
Expand Down
2 changes: 1 addition & 1 deletion Libraries/LibHTML/Layout/LayoutWidget.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ LayoutWidget::~LayoutWidget()

void LayoutWidget::layout()
{
rect().set_size(FloatSize(widget().width(), widget().height()));
rect().set_size(widget().width(), widget().height());
LayoutReplaced::layout();
widget().move_to(rect().x(), rect().y());
}
Expand Down

0 comments on commit 5c2028d

Please sign in to comment.