mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:17:34 +00:00
LibWeb: Add DOMMatrix string constructor and set matrix value
This commit is contained in:
parent
903d3c92c8
commit
be7538961b
15 changed files with 336 additions and 120 deletions
|
@ -20,7 +20,10 @@ using TransformValue = Variant<AngleOrCalculated, LengthPercentage, double>;
|
|||
class Transformation {
|
||||
public:
|
||||
Transformation(TransformFunction function, Vector<TransformValue>&& values);
|
||||
Gfx::FloatMatrix4x4 to_matrix(Painting::PaintableBox const&) const;
|
||||
|
||||
TransformFunction function() const { return m_function; }
|
||||
|
||||
ErrorOr<Gfx::FloatMatrix4x4> to_matrix(Optional<Painting::PaintableBox const&>) const;
|
||||
|
||||
private:
|
||||
TransformFunction m_function;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue