mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-27 11:48:32 +00:00
LibWeb/CSS: Merge RotationStyleValue into TransformationStyleValue
Same again, although rotation is more complicated: `rotate` is "equivalent to" multiple different transform function depending on its arguments. So we can parse as one of those instead of the full `rotate3d()`, but then need to handle this when serializing.
This commit is contained in:
committed by
Andreas Kling
parent
03a4ecce19
commit
b3b9eea986
@@ -750,7 +750,7 @@ void NodeWithStyle::apply_style(const CSS::ComputedProperties& computed_style)
|
||||
|
||||
computed_values.set_box_shadow(computed_style.box_shadow(*this));
|
||||
|
||||
if (auto rotate_value = computed_style.rotate(*this); rotate_value.has_value())
|
||||
if (auto rotate_value = computed_style.rotate(); rotate_value.has_value())
|
||||
computed_values.set_rotate(rotate_value.release_value());
|
||||
|
||||
if (auto translate_value = computed_style.translate(); translate_value.has_value())
|
||||
|
||||
Reference in New Issue
Block a user