mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-17 05:29:56 +00:00
Everywhere: Use Optional<T>::ensure() where useful
No functional changes.
This commit is contained in:
parent
0fe9255991
commit
c31eff6a47
Notes:
github-actions[bot]
2025-09-17 16:02:17 +00:00
Author: https://github.com/gmta
Commit: c31eff6a47
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6220
Reviewed-by: https://github.com/rmg-x
Reviewed-by: https://github.com/trflynn89 ✅
14 changed files with 53 additions and 87 deletions
|
@ -72,7 +72,7 @@ void CSSRule::clear_caches()
|
|||
m_cached_layer_name.clear();
|
||||
}
|
||||
|
||||
FlyString const& CSSRule::parent_layer_internal_qualified_name_slow_case() const
|
||||
FlyString CSSRule::parent_layer_internal_qualified_name_slow_case() const
|
||||
{
|
||||
Vector<FlyString> layer_names;
|
||||
for (auto* rule = parent_rule(); rule; rule = rule->parent_rule()) {
|
||||
|
@ -105,8 +105,7 @@ FlyString const& CSSRule::parent_layer_internal_qualified_name_slow_case() const
|
|||
}
|
||||
}
|
||||
|
||||
m_cached_layer_name = MUST(String::join("."sv, layer_names.in_reverse()));
|
||||
return m_cached_layer_name.value();
|
||||
return MUST(String::join('.', layer_names.in_reverse()));
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue