mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibJS: Flatten Shape::property_table()
In the common case, we take the early return in ensure_property_table() so let's make sure it gets inlined into property_table().
This commit is contained in:
parent
d24f4462c7
commit
61c56e75f4
Notes:
sideshowbarker
2024-07-18 12:43:13 +09:00
Author: https://github.com/awesomekling
Commit: 61c56e75f4
1 changed files with 1 additions and 1 deletions
|
@ -117,7 +117,7 @@ Optional<PropertyMetadata> Shape::lookup(const StringOrSymbol& property_name) co
|
|||
return property;
|
||||
}
|
||||
|
||||
const HashMap<StringOrSymbol, PropertyMetadata>& Shape::property_table() const
|
||||
FLATTEN HashMap<StringOrSymbol, PropertyMetadata> const& Shape::property_table() const
|
||||
{
|
||||
ensure_property_table();
|
||||
return *m_property_table;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue