From 720d49479962f659fec72d3bc9fc0ecf1582d4a6 Mon Sep 17 00:00:00 2001 From: Andreas Kling Date: Tue, 21 Sep 2021 11:49:47 +0200 Subject: [PATCH] LibWeb: Make CSS::Length::m_calculated_style a RefPtr Let's now have CSS::Length holding raw pointers to things. --- Userland/Libraries/LibWeb/CSS/Length.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/CSS/Length.h b/Userland/Libraries/LibWeb/CSS/Length.h index 5187de9c30..b90324a419 100644 --- a/Userland/Libraries/LibWeb/CSS/Length.h +++ b/Userland/Libraries/LibWeb/CSS/Length.h @@ -162,7 +162,7 @@ private: Type m_type { Type::Undefined }; float m_value { 0 }; - CalculatedStyleValue* m_calculated_style { nullptr }; + RefPtr m_calculated_style; }; }