LibHTML: Make the Element::computed_style() return NonnullRefPtr

Because Element::computed_style() can never retrun null we can
return NonnullRefPtr instead of RefPtr.
This commit is contained in:
Matrix89 2020-01-05 17:09:12 +01:00 committed by Andreas Kling
parent 99cf8e36b1
commit 0d402a074b
Notes: sideshowbarker 2024-07-19 10:20:00 +09:00

View file

@ -163,7 +163,7 @@ void Element::recompute_style()
}
}
RefPtr<StyleProperties> Element::computed_style()
NonnullRefPtr<StyleProperties> Element::computed_style()
{
auto properties = m_resolved_style->clone();
if (layout_node() && layout_node()->has_style()) {