LibWeb: Support individual scale CSS property

This commit is contained in:
Andreas Kling 2024-11-22 18:07:16 +01:00 committed by Andreas Kling
commit 9a7c9286c4
Notes: github-actions[bot] 2024-11-22 19:07:43 +00:00
21 changed files with 234 additions and 55 deletions

View file

@ -509,6 +509,7 @@ public:
CSS::TransformOrigin const& transform_origin() const { return m_noninherited.transform_origin; }
Optional<CSS::Transformation> const& rotate() const { return m_noninherited.rotate; }
Optional<CSS::Transformation> const& translate() const { return m_noninherited.translate; }
Optional<CSS::Transformation> const& scale() const { return m_noninherited.scale; }
Gfx::FontCascadeList const& font_list() const { return *m_inherited.font_list; }
CSSPixels font_size() const { return m_inherited.font_size; }
@ -686,6 +687,7 @@ protected:
CSS::UnicodeBidi unicode_bidi { InitialValues::unicode_bidi() };
Optional<CSS::Transformation> rotate;
Optional<CSS::Transformation> translate;
Optional<CSS::Transformation> scale;
Optional<MaskReference> mask;
CSS::MaskType mask_type { InitialValues::mask_type() };
@ -799,6 +801,7 @@ public:
void set_justify_self(CSS::JustifySelf value) { m_noninherited.justify_self = value; }
void set_box_shadow(Vector<ShadowData>&& value) { m_noninherited.box_shadow = move(value); }
void set_rotate(CSS::Transformation value) { m_noninherited.rotate = move(value); }
void set_scale(CSS::Transformation value) { m_noninherited.scale = move(value); }
void set_transformations(Vector<CSS::Transformation> value) { m_noninherited.transformations = move(value); }
void set_transform_box(CSS::TransformBox value) { m_noninherited.transform_box = value; }
void set_transform_origin(CSS::TransformOrigin value) { m_noninherited.transform_origin = value; }