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/Layout/BlockFormattingContext.h | |
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/Layout/BlockFormattingContext.h')
-rw-r--r-- | Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h index 8924bc433a..af67bf20ba 100644 --- a/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h +++ b/Userland/Libraries/LibWeb/Layout/BlockFormattingContext.h @@ -60,8 +60,6 @@ private: void layout_floating_box(Box const& child, BlockContainer const& containing_block, LayoutMode); - void apply_transformations_to_children(Box const&); - void layout_list_item_marker(ListItemBox const&); enum class FloatSide { |