mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:47:44 +00:00
LibWeb: Make CSS Transformation struct a proper class
Move it out of ComputedValues.h into its own files, and take the transformation-to-matrix code from StackingContext.
This commit is contained in:
parent
3c49d0dad3
commit
642ad80960
8 changed files with 193 additions and 152 deletions
|
@ -21,7 +21,7 @@
|
|||
#include <LibWeb/CSS/Size.h>
|
||||
#include <LibWeb/CSS/StyleValues/AbstractImageStyleValue.h>
|
||||
#include <LibWeb/CSS/StyleValues/ShadowStyleValue.h>
|
||||
#include <LibWeb/CSS/TransformFunctions.h>
|
||||
#include <LibWeb/CSS/Transformation.h>
|
||||
|
||||
namespace Web::CSS {
|
||||
|
||||
|
@ -232,13 +232,6 @@ public:
|
|||
bool operator==(BorderData const&) const = default;
|
||||
};
|
||||
|
||||
using TransformValue = Variant<CSS::AngleOrCalculated, CSS::LengthPercentage, double>;
|
||||
|
||||
struct Transformation {
|
||||
CSS::TransformFunction function;
|
||||
Vector<TransformValue> values;
|
||||
};
|
||||
|
||||
struct TransformOrigin {
|
||||
CSS::LengthPercentage x { Percentage(50) };
|
||||
CSS::LengthPercentage y { Percentage(50) };
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue