1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 02:57:42 +00:00
serenity/Userland/Libraries/LibWeb/Page
Andreas Kling 9b0ca75f84 LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox
Image boxes want to know whether they are inside the visible viewport.
This is used to pause/resume animations, and to update the purgeable
memory volatility state.

Previously we would traverse the entire layout tree on every resize,
calling a helper on each ImageBox. Make those boxes register with the
frame they are interested in instead, saving us all that traversal.

This also makes it easier for other parts of the code to learn about
viewport changes in the future. :^)
2021-01-30 12:29:11 +01:00
..
EditEventHandler.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
EditEventHandler.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
EventHandler.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
EventHandler.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
Frame.cpp LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
Frame.h LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
Page.cpp Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00
Page.h Libraries: Move to Userland/Libraries/ 2021-01-12 12:17:46 +01:00