mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-01 12:07:14 +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 ✅
@@ -35,8 +35,8 @@ public:
|
||||
|
||||
GC::Ptr<CSS::ComputedProperties const> computed_properties() const;
|
||||
|
||||
void set_custom_properties(HashMap<FlyString, CSS::StyleProperty>&& custom_properties);
|
||||
[[nodiscard]] HashMap<FlyString, CSS::StyleProperty> const& custom_properties() const;
|
||||
void set_custom_properties(OrderedHashMap<FlyString, CSS::StyleProperty>&& custom_properties);
|
||||
[[nodiscard]] OrderedHashMap<FlyString, CSS::StyleProperty> const& custom_properties() const;
|
||||
RefPtr<CSS::StyleValue const> get_custom_property(FlyString const& name) const;
|
||||
|
||||
GC::Ptr<CSS::CascadedProperties> cascaded_properties() const;
|
||||
|
||||
Reference in New Issue
Block a user