Ver Fonte

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

Let's now have CSS::Length holding raw pointers to things.
Andreas Kling há 3 anos atrás
pai
commit
720d494799
1 ficheiros alterados com 1 adições e 1 exclusões
  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 };
     Type m_type { Type::Undefined };
     float m_value { 0 };
     float m_value { 0 };
 
 
-    CalculatedStyleValue* m_calculated_style { nullptr };
+    RefPtr<CalculatedStyleValue> m_calculated_style;
 };
 };
 
 
 }
 }