1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 18:57:45 +00:00

LibWeb: Simplify LayoutWidget layout

Set the intrinsic size up front and let LayoutReplaced do the work.
This commit is contained in:
Andreas Kling 2020-06-05 21:50:03 +02:00
parent 83cda9e79e
commit 11f2c59219
2 changed files with 4 additions and 11 deletions

View file

@ -35,7 +35,6 @@ public:
LayoutWidget(const Element&, GUI::Widget&);
virtual ~LayoutWidget() override;
virtual void layout(LayoutMode = LayoutMode::Default) override;
virtual void render(RenderingContext&) override;
GUI::Widget& widget() { return m_widget; }