mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 13:18:13 +00:00
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:
parent
99cf8e36b1
commit
0d402a074b
1 changed files with 1 additions and 1 deletions
|
@ -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()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue