diff options
author | Matrix89 <Matrix89@protonmail.ch> | 2020-01-05 17:09:12 +0100 |
---|---|---|
committer | Andreas Kling <awesomekling@gmail.com> | 2020-01-05 17:13:22 +0100 |
commit | 0d402a074b9312c3b9bada17187670b163d262da (patch) | |
tree | c85b8feb14381394f8d30d96d533ced578b36151 /Libraries/LibHTML | |
parent | 99cf8e36b1bef37065611d5b99756a8be3331051 (diff) | |
download | serenity-0d402a074b9312c3b9bada17187670b163d262da.zip |
LibHTML: Make the Element::computed_style() return NonnullRefPtr
Because Element::computed_style() can never retrun null we can
return NonnullRefPtr instead of RefPtr.
Diffstat (limited to 'Libraries/LibHTML')
-rw-r--r-- | Libraries/LibHTML/DOM/Element.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
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<StyleProperties> Element::computed_style() +NonnullRefPtr<StyleProperties> Element::computed_style() { auto properties = m_resolved_style->clone(); if (layout_node() && layout_node()->has_style()) { |