diff options
author | Simon Wanner <skyrising@pvpctutorials.de> | 2022-03-18 01:29:20 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-18 18:51:42 +0100 |
commit | a2331e8dd387fee7f75f165df740aeb4a3069ab7 (patch) | |
tree | 9366a884c3a7408f071427cd1a83e3ae449c7e5c /Userland/Libraries/LibWeb/Namespace.cpp | |
parent | 7c79fc209f01c1400fe90df69d578f92a9bf2b6e (diff) | |
download | serenity-a2331e8dd387fee7f75f165df740aeb4a3069ab7.zip |
LibWeb: Implement CSS transforms on stacking contexts
Since there is currently no easy way to handle rotations and skews
with LibGfx this only implements translation and scaling by first
constructing a general 4x4 transformation matrix like outlined in
the css-transforms-1 specification. This is then downgraded to a
Gfx::AffineTransform in order to transform the destination rectangle
used with draw_scaled_bitmap()
While rotation would be nice this already looks pretty good :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/Namespace.cpp')
0 files changed, 0 insertions, 0 deletions