mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-06-11 18:20:43 +09:00
LibWeb: Remove CalculatedStyleValue from Angle
...and replace it with AngleOrCalculated. This has the nice bonus effect of actually handling `calc()` for angles in a transform function. :^) (Previously we just would have asserted.)
This commit is contained in:
parent
fa90a3bb4f
commit
7a1a97f153
Notes:
sideshowbarker
2024-07-16 22:10:48 +09:00
Author: https://github.com/AtkinsSJ
Commit: 7a1a97f153
Pull-request: https://github.com/SerenityOS/serenity/pull/18104
6 changed files with 9 additions and 37 deletions
|
@ -239,8 +239,8 @@ Gfx::FloatMatrix4x4 StackingContext::get_transformation_matrix(CSS::Transformati
|
|||
|
||||
return value.length().to_px(m_box).value();
|
||||
},
|
||||
[](CSS::Angle const& value) {
|
||||
return value.to_degrees() * static_cast<float>(M_DEG2RAD);
|
||||
[this](CSS::AngleOrCalculated const& value) {
|
||||
return value.resolved(m_box).to_degrees() * static_cast<float>(M_DEG2RAD);
|
||||
},
|
||||
[](float value) {
|
||||
return value;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue