diff --git a/Userland/Libraries/LibWeb/Painting/Command.cpp b/Userland/Libraries/LibWeb/Painting/Command.cpp index cbd0a65d005..fd734114d4e 100644 --- a/Userland/Libraries/LibWeb/Painting/Command.cpp +++ b/Userland/Libraries/LibWeb/Painting/Command.cpp @@ -20,6 +20,11 @@ Gfx::IntRect PaintOuterBoxShadow::bounding_rect() const return get_outer_box_shadow_bounding_rect(box_shadow_params); } +Gfx::IntRect PaintInnerBoxShadow::bounding_rect() const +{ + return box_shadow_params.device_content_rect; +} + void PaintOuterBoxShadow::translate_by(Gfx::IntPoint const& offset) { box_shadow_params.device_content_rect.translate_by(offset); diff --git a/Userland/Libraries/LibWeb/Painting/Command.h b/Userland/Libraries/LibWeb/Painting/Command.h index 9ce66992a00..ac0fc5220c8 100644 --- a/Userland/Libraries/LibWeb/Painting/Command.h +++ b/Userland/Libraries/LibWeb/Painting/Command.h @@ -149,6 +149,7 @@ struct PaintOuterBoxShadow { struct PaintInnerBoxShadow { PaintBoxShadowParams box_shadow_params; + [[nodiscard]] Gfx::IntRect bounding_rect() const; void translate_by(Gfx::IntPoint const& offset); };