mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 08:08:43 +00:00
LibWeb: Add proper support for Angle parameters in transform functions
Also, made the `reference_length` parameter optional for the lambda that extracts transform-function parameters, since it is only needed to resolve `LengthPercentage` parameters.
This commit is contained in:
parent
e60beef12e
commit
b5ab961e20
Notes:
sideshowbarker
2024-07-17 08:43:48 +09:00
Author: https://github.com/AtkinsSJ
Commit: b5ab961e20
Pull-request: https://github.com/SerenityOS/serenity/pull/14627
Reviewed-by: https://github.com/FireFox317
Reviewed-by: https://github.com/linusg ✅
3 changed files with 20 additions and 14 deletions
|
@ -82,9 +82,11 @@ public:
|
|||
float width { 0 };
|
||||
};
|
||||
|
||||
using TransformValue = Variant<CSS::Angle, CSS::LengthPercentage, float>;
|
||||
|
||||
struct Transformation {
|
||||
CSS::TransformFunction function;
|
||||
Vector<Variant<CSS::LengthPercentage, float>> values;
|
||||
Vector<TransformValue> values;
|
||||
};
|
||||
|
||||
struct TransformOrigin {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue