mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-22 16:09:23 +00:00
LibWeb: Store custom properties in an OrderedHashMap
We are expected to preserve their order within a style declaration, so let's do that. Passes 1 tracked WPT subtest.
This commit is contained in:
parent
2674bd428e
commit
95aceb6ec9
Notes:
github-actions[bot]
2025-09-18 13:00:16 +00:00
Author: https://github.com/AtkinsSJ
Commit: 95aceb6ec9
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6226
Reviewed-by: https://github.com/gmta ✅
11 changed files with 30 additions and 31 deletions
|
@ -88,12 +88,12 @@ GC::Ptr<CSS::ComputedProperties const> AbstractElement::computed_properties() co
|
|||
return m_element->computed_properties(m_pseudo_element);
|
||||
}
|
||||
|
||||
HashMap<FlyString, CSS::StyleProperty> const& AbstractElement::custom_properties() const
|
||||
OrderedHashMap<FlyString, CSS::StyleProperty> const& AbstractElement::custom_properties() const
|
||||
{
|
||||
return m_element->custom_properties(m_pseudo_element);
|
||||
}
|
||||
|
||||
void AbstractElement::set_custom_properties(HashMap<FlyString, CSS::StyleProperty>&& custom_properties)
|
||||
void AbstractElement::set_custom_properties(OrderedHashMap<FlyString, CSS::StyleProperty>&& custom_properties)
|
||||
{
|
||||
m_element->set_custom_properties(m_pseudo_element, move(custom_properties));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue