mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 20:29:18 +00:00
LibWeb: Support individual scale
CSS property
This commit is contained in:
parent
66a821e731
commit
9a7c9286c4
Notes:
github-actions[bot]
2024-11-22 19:07:43 +00:00
Author: https://github.com/awesomekling
Commit: 9a7c9286c4
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/2506
Reviewed-by: https://github.com/shannonbooth
21 changed files with 234 additions and 55 deletions
|
@ -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; }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue