LibHTML: Fix broken build after Element::computed_style() change

This commit is contained in:
Andreas Kling 2020-01-05 17:38:52 +01:00
commit 1d95e56700
Notes: sideshowbarker 2024-07-19 10:19:54 +09:00
2 changed files with 2 additions and 2 deletions

View file

@ -187,5 +187,5 @@ NonnullRefPtr<StyleProperties> Element::computed_style()
properties->set_property(id, prop.value()); properties->set_property(id, prop.value());
} }
} }
return properties.ptr(); return properties;
} }

View file

@ -57,7 +57,7 @@ public:
String name() const { return attribute("name"); } String name() const { return attribute("name"); }
const StyleProperties* resolved_style() const { return m_resolved_style.ptr(); } const StyleProperties* resolved_style() const { return m_resolved_style.ptr(); }
RefPtr<StyleProperties> computed_style(); NonnullRefPtr<StyleProperties> computed_style();
private: private:
RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override; RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override;