diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp index f4625108a8f..f4bb778e808 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.cpp +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.cpp @@ -78,8 +78,6 @@ void DisplayList::mark_unnecessary_commands() void DisplayList::execute(DisplayListPlayer& executor) { - executor.prepare_to_execute(m_corner_clip_max_depth); - HashTable skipped_sample_corner_commands; size_t next_command_index = 0; while (next_command_index < m_commands.size()) { diff --git a/Userland/Libraries/LibWeb/Painting/DisplayList.h b/Userland/Libraries/LibWeb/Painting/DisplayList.h index 6edace05c2b..e7efe07c0da 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayList.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayList.h @@ -66,7 +66,6 @@ public: virtual void sample_under_corners(SampleUnderCorners const&) = 0; virtual void blit_corner_clipping(BlitCornerClipping const&) = 0; virtual bool would_be_fully_clipped_by_painter(Gfx::IntRect) const = 0; - virtual void prepare_to_execute([[maybe_unused]] size_t corner_clip_max_depth) { } }; class DisplayList { @@ -77,9 +76,6 @@ public: void mark_unnecessary_commands(); void execute(DisplayListPlayer&); - size_t corner_clip_max_depth() const { return m_corner_clip_max_depth; } - void set_corner_clip_max_depth(size_t depth) { m_corner_clip_max_depth = depth; } - private: struct CommandListItem { Optional scroll_frame_id; @@ -87,7 +83,6 @@ private: bool skip { false }; }; - size_t m_corner_clip_max_depth { 0 }; AK::SegmentedVector m_commands; }; diff --git a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp index 179270c0362..36fe8571ebd 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp +++ b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.cpp @@ -1292,10 +1292,6 @@ void DisplayListPlayerSkia::draw_triangle_wave(DrawTriangleWave const&) { } -void DisplayListPlayerSkia::prepare_to_execute(size_t) -{ -} - void DisplayListPlayerSkia::sample_under_corners(SampleUnderCorners const& command) { auto rounded_rect = to_skia_rrect(command.border_rect, command.corner_radii); diff --git a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h index 5e67b794d2d..af0ca4aa4c7 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h +++ b/Userland/Libraries/LibWeb/Painting/DisplayListPlayerSkia.h @@ -65,8 +65,6 @@ public: bool would_be_fully_clipped_by_painter(Gfx::IntRect) const override; - virtual void prepare_to_execute(size_t corner_clip_max_depth) override; - DisplayListPlayerSkia(Gfx::Bitmap&); #ifdef USE_VULKAN diff --git a/Userland/Libraries/LibWeb/Painting/DisplayListRecorder.cpp b/Userland/Libraries/LibWeb/Painting/DisplayListRecorder.cpp index ea16e8e18ae..3a9df15e223 100644 --- a/Userland/Libraries/LibWeb/Painting/DisplayListRecorder.cpp +++ b/Userland/Libraries/LibWeb/Painting/DisplayListRecorder.cpp @@ -28,8 +28,6 @@ void DisplayListRecorder::append(Command&& command) void DisplayListRecorder::sample_under_corners(u32 id, CornerRadii corner_radii, Gfx::IntRect border_rect, CornerClip corner_clip) { m_corner_clip_state_stack.append({ id, border_rect }); - if (m_corner_clip_state_stack.size() > display_list().corner_clip_max_depth()) - display_list().set_corner_clip_max_depth(m_corner_clip_state_stack.size()); append(SampleUnderCorners { id, corner_radii,