diff --git a/Userland/Libraries/LibWeb/Layout/Box.h b/Userland/Libraries/LibWeb/Layout/Box.h index 20b7094fd08..a996209aaa7 100644 --- a/Userland/Libraries/LibWeb/Layout/Box.h +++ b/Userland/Libraries/LibWeb/Layout/Box.h @@ -38,7 +38,7 @@ public: virtual ~Box() override; - virtual void did_set_rect() { } + virtual void did_set_content_size() { } virtual JS::GCPtr create_paintable() const override; diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp index fb98c9afc25..d2be5968ea0 100644 --- a/Userland/Libraries/LibWeb/Layout/FrameBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/FrameBox.cpp @@ -28,9 +28,9 @@ void FrameBox::prepare_for_replaced_layout() set_intrinsic_height(dom_node().attribute(HTML::AttributeNames::height).to_int().value_or(150)); } -void FrameBox::did_set_rect() +void FrameBox::did_set_content_size() { - ReplacedBox::did_set_rect(); + ReplacedBox::did_set_content_size(); VERIFY(dom_node().nested_browsing_context()); dom_node().nested_browsing_context()->set_size(paintable_box()->content_size()); diff --git a/Userland/Libraries/LibWeb/Layout/FrameBox.h b/Userland/Libraries/LibWeb/Layout/FrameBox.h index 4f225fae5d8..0dec7b0a8b6 100644 --- a/Userland/Libraries/LibWeb/Layout/FrameBox.h +++ b/Userland/Libraries/LibWeb/Layout/FrameBox.h @@ -26,7 +26,7 @@ public: virtual JS::GCPtr create_paintable() const override; private: - virtual void did_set_rect() override; + virtual void did_set_content_size() override; }; } diff --git a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp index 75d5659d7ec..639b077bb30 100644 --- a/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp +++ b/Userland/Libraries/LibWeb/Painting/PaintableBox.cpp @@ -63,13 +63,12 @@ PaintableWithLines::~PaintableWithLines() void PaintableBox::set_offset(CSSPixelPoint offset) { m_offset = offset; - layout_box().did_set_rect(); } void PaintableBox::set_content_size(CSSPixelSize size) { m_content_size = size; - layout_box().did_set_rect(); + layout_box().did_set_content_size(); } CSSPixelPoint PaintableBox::effective_offset() const