From ce33376b56494f41221191d19b31f775ca097c61 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Mon, 26 May 2025 17:07:49 +0200 Subject: [PATCH] LibWeb: Make SVGGradientPaintStyle be atomically ref-counted This was the only remaining data type used in display lists that wasn't atomically ref-counted. Now that it is, we no longer crash when scrolling on https://vercel.com/ --- Libraries/LibWeb/Painting/PaintStyle.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Libraries/LibWeb/Painting/PaintStyle.h b/Libraries/LibWeb/Painting/PaintStyle.h index 5cf1d3816b3..0f94a16820f 100644 --- a/Libraries/LibWeb/Painting/PaintStyle.h +++ b/Libraries/LibWeb/Painting/PaintStyle.h @@ -6,8 +6,7 @@ #pragma once -#include -#include +#include #include namespace Web::Painting { @@ -18,7 +17,7 @@ struct ColorStop { Optional transition_hint = {}; }; -class SVGGradientPaintStyle : public RefCounted { +class SVGGradientPaintStyle : public AtomicRefCounted { public: enum class SpreadMethod { Pad,