mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 03:55:24 +00:00
LibGfx: Unpublish FloatSize from the global namespace
This commit is contained in:
parent
8505d8d15d
commit
5c2028db24
Notes:
sideshowbarker
2024-07-19 09:34:22 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/5c2028db249
3 changed files with 2 additions and 4 deletions
|
@ -115,5 +115,3 @@ inline const LogStream& operator<<(const LogStream& stream, const FloatSize& val
|
|||
}
|
||||
|
||||
}
|
||||
|
||||
using Gfx::FloatSize;
|
||||
|
|
|
@ -39,7 +39,7 @@ public:
|
|||
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;
|
||||
|
|
|
@ -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());
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue