mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 10:07:15 +02: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:
committed by
Jelle Raaijmakers
parent
2674bd428e
commit
95aceb6ec9
Notes:
github-actions[bot]
2025-09-18 13:00:16 +00:00
Author: https://github.com/AtkinsSJ Commit: https://github.com/LadybirdBrowser/ladybird/commit/95aceb6ec99 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6226 Reviewed-by: https://github.com/gmta ✅
@@ -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));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user