ladybird/Userland/Libraries/LibWeb/Layout
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
..
BlockBox.cpp
BlockBox.h
BlockFormattingContext.cpp
BlockFormattingContext.h
Box.cpp
Box.h LibWeb: Add Layout::Box::margin_box_height() 2021-01-18 20:20:20 +01:00
BoxModelMetrics.cpp
BoxModelMetrics.h
BreakNode.cpp
BreakNode.h
ButtonBox.cpp
ButtonBox.h
CanvasBox.cpp
CanvasBox.h
CheckBox.cpp
CheckBox.h
FlexFormattingContext.cpp LibWeb: Very basic support for CSS flex-direction 2021-01-18 20:20:24 +01:00
FlexFormattingContext.h LibWeb: Add a very naive Layout::FlexFormattingContext :^) 2021-01-18 20:20:13 +01:00
FormattingContext.cpp LibWeb: Add a very naive Layout::FlexFormattingContext :^) 2021-01-18 20:20:13 +01:00
FormattingContext.h
FrameBox.cpp Everywhere: Hook up remaining debug macros to Debug.h. 2021-01-25 09:47:36 +01:00
FrameBox.h
ImageBox.cpp LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
ImageBox.h LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
InitialContainingBlockBox.cpp LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
InitialContainingBlockBox.h LibWeb: Add Frame::ViewportClient and use it for Layout::ImageBox 2021-01-30 12:29:11 +01:00
InlineFormattingContext.cpp
InlineFormattingContext.h
InlineNode.cpp
InlineNode.h
LayoutPosition.cpp
LayoutPosition.h
LineBox.cpp
LineBox.h
LineBoxFragment.cpp
LineBoxFragment.h
ListItemBox.cpp
ListItemBox.h
ListItemMarkerBox.cpp
ListItemMarkerBox.h
Node.cpp LibWeb: Parse the CSS "flex-direction" property 2021-01-18 20:20:16 +01:00
Node.h
ReplacedBox.cpp
ReplacedBox.h
SVGBox.cpp
SVGBox.h
SVGGraphicsBox.cpp
SVGGraphicsBox.h
SVGPathBox.cpp
SVGPathBox.h Libraries: Add missing headers 2021-01-22 21:49:54 +01:00
SVGSVGBox.cpp
SVGSVGBox.h
TableBox.cpp
TableBox.h
TableCellBox.cpp
TableCellBox.h
TableFormattingContext.cpp
TableFormattingContext.h
TableRowBox.cpp
TableRowBox.h
TableRowGroupBox.cpp
TableRowGroupBox.h
TextNode.cpp
TextNode.h
TreeBuilder.cpp
TreeBuilder.h
WidgetBox.cpp
WidgetBox.h