mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 05:09:12 +00: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
Notes:
github-actions[bot]
2025-05-26 17:47:00 +00:00
Author: https://github.com/awesomekling
Commit: ce33376b56
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4887
1 changed files with 2 additions and 3 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue