mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-20 09:21:55 +00:00
LibWeb: Use LengthPercentage for calc values in Transformation matrix
This commit is contained in:
parent
e2b2b2439c
commit
a8ef84f8c3
Notes:
sideshowbarker
2024-07-17 11:30:05 +09:00
Author: https://github.com/mattco98
Commit: a8ef84f8c3
Pull-request: https://github.com/SerenityOS/serenity/pull/24443
Issue: https://github.com/SerenityOS/serenity/issues/23633
Issue: https://github.com/SerenityOS/serenity/issues/24375
3 changed files with 23 additions and 1 deletions
|
@ -870,7 +870,7 @@ static RefPtr<StyleValue const> interpolate_transform(DOM::Element& element, Sty
|
|||
values.append(AngleOrCalculated { value->as_angle().angle() });
|
||||
break;
|
||||
case StyleValue::Type::Calculated:
|
||||
values.append(AngleOrCalculated { value->as_calculated() });
|
||||
values.append(LengthPercentage { value->as_calculated() });
|
||||
break;
|
||||
case StyleValue::Type::Length:
|
||||
values.append(LengthPercentage { value->as_length().length() });
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue