diff --git a/Libraries/LibHTML/DOM/Element.cpp b/Libraries/LibHTML/DOM/Element.cpp
index 013e0f5699..c0e769efe1 100644
--- a/Libraries/LibHTML/DOM/Element.cpp
+++ b/Libraries/LibHTML/DOM/Element.cpp
@@ -163,7 +163,7 @@ void Element::recompute_style()
}
}
-RefPtr Element::computed_style()
+NonnullRefPtr Element::computed_style()
{
auto properties = m_resolved_style->clone();
if (layout_node() && layout_node()->has_style()) {