mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-26 12:17:52 +00:00
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.
This commit is contained in:
parent
280ae45210
commit
4b7f4aef10
Notes:
github-actions[bot]
2025-04-16 16:43:58 +00:00
Author: https://github.com/ADKaster
Commit: 4b7f4aef10
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4362
Reviewed-by: https://github.com/AtkinsSJ
Reviewed-by: https://github.com/Hendiadyoin1
1 changed files with 2 additions and 2 deletions
|
@ -15,8 +15,8 @@ class ClippableAndScrollable {
|
|||
public:
|
||||
virtual ~ClippableAndScrollable() = default;
|
||||
|
||||
void set_enclosing_scroll_frame(RefPtr<ScrollFrame> scroll_frame) { m_enclosing_scroll_frame = scroll_frame; }
|
||||
void set_enclosing_clip_frame(RefPtr<ClipFrame> clip_frame) { m_enclosing_clip_frame = clip_frame; }
|
||||
void set_enclosing_scroll_frame(RefPtr<ScrollFrame const> scroll_frame) { m_enclosing_scroll_frame = scroll_frame; }
|
||||
void set_enclosing_clip_frame(RefPtr<ClipFrame const> clip_frame) { m_enclosing_clip_frame = clip_frame; }
|
||||
|
||||
[[nodiscard]] RefPtr<ScrollFrame const> enclosing_scroll_frame() const { return m_enclosing_scroll_frame; }
|
||||
[[nodiscard]] Optional<int> scroll_frame_id() const;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue