ladybird/Userland/Libraries/LibWeb/Layout
Andreas Kling 3f2b17f602 LibWeb: Add functions for calculating intrinsic sizes of a Layout::Box
FormattingContext can now calculate the intrinsic sizes (min-content and
max-content in both axes) for a given Layout::Box.

This is a rather expensive operation, as it necessitates performing two
throwaway layouts of the subtree rooted at the box. Fortunately, we can
cache the results of these calculations, as intrinsic sizes don't change
based on other context around the box. They are intrinsic after all. :^)
2022-03-13 00:04:51 +01:00
..
BlockContainer.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
BlockContainer.h LibWeb: Move hit testing to the painting tree 2022-03-11 00:21:49 +01:00
BlockFormattingContext.cpp LibWeb: Only collapse vertical margin between BlockContainer siblings 2022-03-13 00:04:51 +01:00
BlockFormattingContext.h LibWeb: Create list-item markers during layout tree construction 2022-02-21 18:35:12 +01:00
Box.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
Box.h LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
BoxModelMetrics.cpp
BoxModelMetrics.h
BreakNode.cpp LibWeb: Let Paintable perform the painting 2022-03-11 00:21:49 +01:00
BreakNode.h LibWeb: Let Paintable perform the painting 2022-03-11 00:21:49 +01:00
ButtonBox.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
ButtonBox.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
CanvasBox.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
CanvasBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
CheckBox.cpp LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
CheckBox.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
FlexFormattingContext.cpp LibWeb: Add FFC helpers for resolving definite main/cross sizes 2022-03-13 00:04:51 +01:00
FlexFormattingContext.h LibWeb: Add FFC helpers for resolving definite main/cross sizes 2022-03-13 00:04:51 +01:00
FormattingContext.cpp LibWeb: Add functions for calculating intrinsic sizes of a Layout::Box 2022-03-13 00:04:51 +01:00
FormattingContext.h LibWeb: Add functions for calculating intrinsic sizes of a Layout::Box 2022-03-13 00:04:51 +01:00
FormattingState.cpp LibWeb: Generate a TextPaintable for every Layout::TextNode 2022-03-11 00:21:49 +01:00
FormattingState.h LibWeb: Add functions for calculating intrinsic sizes of a Layout::Box 2022-03-13 00:04:51 +01:00
FrameBox.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
FrameBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
ImageBox.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
ImageBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
InitialContainingBlock.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
InitialContainingBlock.h LibWeb: Move hit testing to the painting tree 2022-03-11 00:21:49 +01:00
InlineFormattingContext.cpp LibWeb: Apply the current text-justify value when justifying 2022-03-12 21:51:38 +01:00
InlineFormattingContext.h LibWeb: Apply the current text-justify value when justifying 2022-03-12 21:51:38 +01:00
InlineLevelIterator.cpp LibWeb: Make InlineLevelIterator emit absolutely positioned items 2022-03-08 00:19:49 +01:00
InlineLevelIterator.h LibWeb: Make InlineLevelIterator emit absolutely positioned items 2022-03-08 00:19:49 +01:00
InlineNode.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
InlineNode.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
Label.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
Label.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
LabelableNode.cpp LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
LabelableNode.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
LayoutPosition.cpp
LayoutPosition.h
LineBox.cpp LibWeb: Respect inline-axis margins between line box fragments :^) 2022-03-09 18:47:32 +01:00
LineBox.h LibWeb: Respect inline-axis margins between line box fragments :^) 2022-03-09 18:47:32 +01:00
LineBoxFragment.cpp LibWeb: Use Layout::Box::paint_box() accessor in more places 2022-03-11 00:21:49 +01:00
LineBoxFragment.h LibWeb: Move StackingContext and PaintPhase into the Painting namespace 2022-03-11 00:21:49 +01:00
LineBuilder.cpp LibWeb: Refactor text justification code + only justify below threshold 2022-03-12 21:51:38 +01:00
LineBuilder.h LibWeb: Respect inline-axis margins between line box fragments :^) 2022-03-09 18:47:32 +01:00
ListItemBox.cpp LibWeb: Make display: foo box constructors take the Element by pointer 2022-02-25 19:35:34 +01:00
ListItemBox.h LibWeb: Make display: foo box constructors take the Element by pointer 2022-02-25 19:35:34 +01:00
ListItemMarkerBox.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
ListItemMarkerBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
Node.cpp LibWeb: Improve how layout nodes decide whether they have definite sizes 2022-03-13 00:04:51 +01:00
Node.h LibWeb: Improve how layout nodes decide whether they have definite sizes 2022-03-13 00:04:51 +01:00
Progress.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
Progress.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
RadioButton.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
RadioButton.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
ReplacedBox.cpp LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
ReplacedBox.h LibWeb: Remove old Layout::Node::split_into_lines() API 2022-01-23 01:22:41 +01:00
SVGBox.cpp LibWeb: Make Layout::SVGBox a BlockContainer again 2022-03-13 00:04:51 +01:00
SVGBox.h LibWeb: Make Layout::SVGBox a BlockContainer again 2022-03-13 00:04:51 +01:00
SVGFormattingContext.cpp LibWeb: Add support for 'view-box' attribute to SVGs 2022-02-28 16:49:24 +01:00
SVGFormattingContext.h LibWeb: Start making our layout system "transactional" 2022-02-21 18:35:12 +01:00
SVGGeometryBox.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
SVGGeometryBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGGraphicsBox.cpp LibWeb: Let Paintable perform the painting 2022-03-11 00:21:49 +01:00
SVGGraphicsBox.h LibWeb: Let Paintable perform the painting 2022-03-11 00:21:49 +01:00
SVGSVGBox.cpp LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
SVGSVGBox.h LibWeb: Make Paintable ref-counted 2022-03-11 00:21:49 +01:00
TableBox.cpp
TableBox.h
TableCellBox.cpp
TableCellBox.h
TableFormattingContext.cpp LibWeb: Compute table cell height after doing its inside layout 2022-02-21 18:35:12 +01:00
TableFormattingContext.h LibWeb: Start making our layout system "transactional" 2022-02-21 18:35:12 +01:00
TableRowBox.cpp
TableRowBox.h
TableRowGroupBox.cpp LibWeb: Make display: foo box constructors take the Element by pointer 2022-02-25 19:35:34 +01:00
TableRowGroupBox.h LibWeb: Make display: foo box constructors take the Element by pointer 2022-02-25 19:35:34 +01:00
TextNode.cpp LibWeb: Remove a bunch of no-longer needed #includes 2022-03-11 00:21:49 +01:00
TextNode.h LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
TreeBuilder.cpp LibWeb: Improve how layout nodes decide whether they have definite sizes 2022-03-13 00:04:51 +01:00
TreeBuilder.h