浏览代码

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

Let's now have CSS::Length holding raw pointers to things.
Andreas Kling 3 年之前
父节点
当前提交
720d494799
共有 1 个文件被更改,包括 1 次插入1 次删除
  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;
 };
 
 }