diff options
author | Andreas Kling <kling@serenityos.org> | 2022-03-10 15:50:16 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-11 00:21:49 +0100 |
commit | 9461e44afa62624564b67b41bf565ee4bee09c22 (patch) | |
tree | 80d4102032d3449f673ed57553753727dbcd9d5e /Userland/Libraries/LibWeb/Layout/ImageBox.cpp | |
parent | 02b316fd5cc2039a30cab33edee4595900cb35aa (diff) | |
download | serenity-9461e44afa62624564b67b41bf565ee4bee09c22.zip |
LibWeb: Use Layout::Box::paint_box() accessor in more places
Diffstat (limited to 'Userland/Libraries/LibWeb/Layout/ImageBox.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/ImageBox.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp index 1c351b64f3..950c73b83b 100644 --- a/Userland/Libraries/LibWeb/Layout/ImageBox.cpp +++ b/Userland/Libraries/LibWeb/Layout/ImageBox.cpp @@ -81,7 +81,7 @@ bool ImageBox::renders_as_alt_text() const void ImageBox::browsing_context_did_set_viewport_rect(Gfx::IntRect const& viewport_rect) { - m_image_loader.set_visible_in_viewport(viewport_rect.to_type<float>().intersects(m_paint_box->absolute_rect())); + m_image_loader.set_visible_in_viewport(viewport_rect.to_type<float>().intersects(paint_box()->absolute_rect())); } OwnPtr<Painting::Paintable> ImageBox::create_paintable() const |