Przeglądaj źródła

LibWeb: Make CSS::Length::m_calculated_style a RefPtr

Let's now have CSS::Length holding raw pointers to things.
Andreas Kling 3 lat temu
rodzic
commit
720d494799
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      Userland/Libraries/LibWeb/CSS/Length.h

+ 1 - 1
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<CalculatedStyleValue> m_calculated_style;
 };
 
 }