diff options
author | Andreas Kling <awesomekling@gmail.com> | 2020-01-05 17:38:52 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-05 17:38:52 +0100 |
commit | 1d95e56700533ade1f114169e7d588755df2ca74 (patch) | |
tree | e01a4d2b5c12a04fd5eb79e5a7e0602e3d6e09a7 /Libraries/LibHTML | |
parent | 0d402a074b9312c3b9bada17187670b163d262da (diff) | |
download | serenity-1d95e56700533ade1f114169e7d588755df2ca74.zip |
LibHTML: Fix broken build after Element::computed_style() change
Diffstat (limited to 'Libraries/LibHTML')
-rw-r--r-- | Libraries/LibHTML/DOM/Element.cpp | 2 | ||||
-rw-r--r-- | Libraries/LibHTML/DOM/Element.h | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Libraries/LibHTML/DOM/Element.cpp b/Libraries/LibHTML/DOM/Element.cpp index c0e769efe1..ab0b531b0f 100644 --- a/Libraries/LibHTML/DOM/Element.cpp +++ b/Libraries/LibHTML/DOM/Element.cpp @@ -187,5 +187,5 @@ NonnullRefPtr<StyleProperties> Element::computed_style() properties->set_property(id, prop.value()); } } - return properties.ptr(); + return properties; } diff --git a/Libraries/LibHTML/DOM/Element.h b/Libraries/LibHTML/DOM/Element.h index e163aa26bc..346f0a3f06 100644 --- a/Libraries/LibHTML/DOM/Element.h +++ b/Libraries/LibHTML/DOM/Element.h @@ -57,7 +57,7 @@ public: String name() const { return attribute("name"); } const StyleProperties* resolved_style() const { return m_resolved_style.ptr(); } - RefPtr<StyleProperties> computed_style(); + NonnullRefPtr<StyleProperties> computed_style(); private: RefPtr<LayoutNode> create_layout_node(const StyleProperties* parent_style) const override; |