mirror of
https://github.com/zebrajr/ladybird.git
synced 2025-12-06 00:19:53 +01:00
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/
This commit is contained in:
parent
addff9e35d
commit
ce33376b56
|
|
@ -6,8 +6,7 @@
|
|||
|
||||
#pragma once
|
||||
|
||||
#include <AK/RefCounted.h>
|
||||
#include <AK/Variant.h>
|
||||
#include <AK/AtomicRefCounted.h>
|
||||
#include <LibGfx/PaintStyle.h>
|
||||
|
||||
namespace Web::Painting {
|
||||
|
|
@ -18,7 +17,7 @@ struct ColorStop {
|
|||
Optional<float> transition_hint = {};
|
||||
};
|
||||
|
||||
class SVGGradientPaintStyle : public RefCounted<SVGGradientPaintStyle> {
|
||||
class SVGGradientPaintStyle : public AtomicRefCounted<SVGGradientPaintStyle> {
|
||||
public:
|
||||
enum class SpreadMethod {
|
||||
Pad,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user