summaryrefslogtreecommitdiff
path: root/Libraries/LibHTML
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2020-01-05 17:38:52 +0100
committerAndreas Kling <awesomekling@gmail.com>2020-01-05 17:38:52 +0100
commit1d95e56700533ade1f114169e7d588755df2ca74 (patch)
treee01a4d2b5c12a04fd5eb79e5a7e0602e3d6e09a7 /Libraries/LibHTML
parent0d402a074b9312c3b9bada17187670b163d262da (diff)
downloadserenity-1d95e56700533ade1f114169e7d588755df2ca74.zip
LibHTML: Fix broken build after Element::computed_style() change
Diffstat (limited to 'Libraries/LibHTML')
-rw-r--r--Libraries/LibHTML/DOM/Element.cpp2
-rw-r--r--Libraries/LibHTML/DOM/Element.h2
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;