From 8cc757b92b439aa28704141314e46776737c2ee2 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Sun, 20 Mar 2022 19:00:22 +0100 Subject: LibWeb: Always call Layout::Box::did_set_rect() Since paintables have a default content size of 0x0, we were neglecting to notify the corresponding layout node about size changes, if the used content size came out to 0x0. This fixes an issue where resizing an iframe to 0x0 didn't take effect. --- Userland/Libraries/LibWeb/Painting/PaintableBox.cpp | 4 ---- 1 file changed, 4 deletions(-) (limited to 'Userland') diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index d1deb1f8da..2cdfbbbf22 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -39,8 +39,6 @@ PaintableWithLines::~PaintableWithLines() void PaintableBox::set_offset(const Gfx::FloatPoint& offset) { - if (m_offset == offset) - return; m_offset = offset; // FIXME: This const_cast is gross. const_cast(layout_box()).did_set_rect(); @@ -48,8 +46,6 @@ void PaintableBox::set_offset(const Gfx::FloatPoint& offset) void PaintableBox::set_content_size(Gfx::FloatSize const& size) { - if (m_content_size == size) - return; m_content_size = size; // FIXME: This const_cast is gross. const_cast(layout_box()).did_set_rect(); -- cgit v1.2.3