1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:37:34 +00:00

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

This commit is contained in:
Andreas Kling 2020-01-05 17:38:52 +01:00
parent 0d402a074b
commit 1d95e56700
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;