summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Namespace.cpp
diff options
context:
space:
mode:
authorSimon Wanner <skyrising@pvpctutorials.de>2022-03-18 01:29:20 +0100
committerAndreas Kling <kling@serenityos.org>2022-03-18 18:51:42 +0100
commita2331e8dd387fee7f75f165df740aeb4a3069ab7 (patch)
tree9366a884c3a7408f071427cd1a83e3ae449c7e5c /Userland/Libraries/LibWeb/Namespace.cpp
parent7c79fc209f01c1400fe90df69d578f92a9bf2b6e (diff)
downloadserenity-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