From 4b7f4aef10098f96b243e379e7cc8eef9037d3fe Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Tue, 15 Apr 2025 15:52:40 -0600 Subject: [PATCH] LibWeb: Pass RefPtr to const to ClippableAndScrollable setters We were already storing the ClipFrame and ScrollFrame in RefPtr to const but we were passing them as RefPtr to non-const to the setters. --- Libraries/LibWeb/Painting/ClippableAndScrollable.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Libraries/LibWeb/Painting/ClippableAndScrollable.h b/Libraries/LibWeb/Painting/ClippableAndScrollable.h index 29e42baae06..d476c040202 100644 --- a/Libraries/LibWeb/Painting/ClippableAndScrollable.h +++ b/Libraries/LibWeb/Painting/ClippableAndScrollable.h @@ -15,8 +15,8 @@ class ClippableAndScrollable { public: virtual ~ClippableAndScrollable() = default; - void set_enclosing_scroll_frame(RefPtr scroll_frame) { m_enclosing_scroll_frame = scroll_frame; } - void set_enclosing_clip_frame(RefPtr clip_frame) { m_enclosing_clip_frame = clip_frame; } + void set_enclosing_scroll_frame(RefPtr scroll_frame) { m_enclosing_scroll_frame = scroll_frame; } + void set_enclosing_clip_frame(RefPtr clip_frame) { m_enclosing_clip_frame = clip_frame; } [[nodiscard]] RefPtr enclosing_scroll_frame() const { return m_enclosing_scroll_frame; } [[nodiscard]] Optional scroll_frame_id() const;