mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 22:07:35 +00:00
LibWeb: Remove CalculatedStyleValue from Angle
...and replace it with AngleOrCalculated. This has the nice bonus effect of actually handling `calc()` for angles in a transform function. :^) (Previously we just would have asserted.)
This commit is contained in:
parent
fa90a3bb4f
commit
7a1a97f153
6 changed files with 9 additions and 37 deletions
|
@ -105,7 +105,7 @@ public:
|
|||
float width { 0 };
|
||||
};
|
||||
|
||||
using TransformValue = Variant<CSS::Angle, CSS::LengthPercentage, float>;
|
||||
using TransformValue = Variant<CSS::AngleOrCalculated, CSS::LengthPercentage, float>;
|
||||
|
||||
struct Transformation {
|
||||
CSS::TransformFunction function;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue