1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 12:17:35 +00:00

LibWeb: Expose CSS shorthand -> longhand conversion

This conversion needs to be done by KeyframEffect as well
This commit is contained in:
Matthew Olsson 2024-02-24 08:36:24 -07:00 committed by Andreas Kling
parent af1f0c673e
commit 9e0ff9c140
2 changed files with 35 additions and 27 deletions

View file

@ -41,6 +41,9 @@ struct FontFaceKey {
class StyleComputer {
public:
static void for_each_property_expanding_shorthands(PropertyID, StyleValue const&, Function<void(PropertyID, StyleValue const&)> const& set_longhand_property);
static void set_property_expanding_shorthands(StyleProperties&, PropertyID, StyleValue const&, CSS::CSSStyleDeclaration const*, StyleProperties::PropertyValues const& properties_for_revert);
explicit StyleComputer(DOM::Document&);
~StyleComputer();