ladybird/Userland/Libraries/LibWeb/Layout
Andreas Kling 17a6fcfde3 LibWeb: Try to work out the intrinsic size of <svg> elements
If the `width` and `height` attributes are provided, we derive the
intrinsic size and ratio from them.

Otherwise, we trace a rectangle around the geometry elements inside
the SVG and use the size of that as the intrinsic size.

This is definitely far from correct, but is still a much better guess
at the intrinsic size than nothing.
2022-07-11 18:57:45 +02:00
..
BlockContainer.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
BlockContainer.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
BlockFormattingContext.cpp LibWeb: More specialization of intrinsic sizing layout 2022-07-11 18:57:45 +02:00
BlockFormattingContext.h LibWeb: More specialization of intrinsic sizing layout 2022-07-11 18:57:45 +02:00
Box.cpp LibWeb: Make Layout::Box::set_needs_display() work for all boxes 2022-04-12 00:11:48 +02:00
Box.h
BoxModelMetrics.cpp
BoxModelMetrics.h
BreakNode.cpp
BreakNode.h
ButtonBox.cpp LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
ButtonBox.h
CanvasBox.cpp
CanvasBox.h
CheckBox.cpp LibGfx: Move other font-related files to LibGfx/Font/ 2022-04-09 23:48:18 +02:00
CheckBox.h
FlexFormattingContext.cpp LibWeb: Use the *outer* flex base size in intrinsic size calculation 2022-07-11 18:57:45 +02:00
FlexFormattingContext.h LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
FormAssociatedLabelableNode.h
FormattingContext.cpp LibWeb: More specialization of intrinsic sizing layout 2022-07-11 18:57:45 +02:00
FormattingContext.h LibWeb: More specialization of intrinsic sizing layout 2022-07-11 18:57:45 +02:00
FormattingState.cpp LibWeb: Add a 1-entry lookup cache to FormattingState 2022-07-06 20:31:22 +02:00
FormattingState.h LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
FrameBox.cpp
FrameBox.h
ImageBox.cpp LibWeb: Stop including StyleValue.h in a few places 2022-04-14 14:54:06 +02:00
ImageBox.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
InitialContainingBlock.cpp LibWeb: Ignore non-painting layout nodes when building stacking contexts 2022-04-07 17:06:02 +02:00
InitialContainingBlock.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
InlineFormattingContext.cpp LibWeb: Make sure we always apply size constraints in IFC 2022-07-11 18:57:45 +02:00
InlineFormattingContext.h LibWeb: Make sure we always apply size constraints in IFC 2022-07-11 18:57:45 +02:00
InlineLevelIterator.cpp LibWeb: Don't iterate over text content inside replaced elements 2022-07-11 18:57:45 +02:00
InlineLevelIterator.h LibWeb: Cache a pointer to the IFC root in InlineLevelIterator 2022-07-06 20:31:27 +02:00
InlineNode.cpp
InlineNode.h
Label.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
Label.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LabelableNode.cpp
LabelableNode.h
LayoutPosition.cpp
LayoutPosition.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LineBox.cpp
LineBox.h
LineBoxFragment.cpp Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LineBoxFragment.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
LineBuilder.cpp LibWeb: Make sure we always apply size constraints in IFC 2022-07-11 18:57:45 +02:00
LineBuilder.h LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
ListItemBox.cpp
ListItemBox.h
ListItemMarkerBox.cpp
ListItemMarkerBox.h
Node.cpp LibWeb: Keep both horizontal and vertical border radii till painting 2022-06-13 09:43:45 +01:00
Node.h LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
Progress.cpp
Progress.h
RadioButton.cpp LibWeb: Set 1:1 intrinsic aspect ratio for radio buttons 2022-07-11 18:57:45 +02:00
RadioButton.h
ReplacedBox.cpp
ReplacedBox.h
SVGBox.cpp
SVGBox.h
SVGFormattingContext.cpp LibWeb: Cache reference to <svg> element in SVGFormattingContext 2022-07-11 18:57:45 +02:00
SVGFormattingContext.h
SVGGeometryBox.cpp
SVGGeometryBox.h
SVGGraphicsBox.cpp
SVGGraphicsBox.h
SVGSVGBox.cpp LibWeb: Try to work out the intrinsic size of <svg> elements 2022-07-11 18:57:45 +02:00
SVGSVGBox.h LibWeb: Try to work out the intrinsic size of <svg> elements 2022-07-11 18:57:45 +02:00
TableBox.cpp
TableBox.h
TableCellBox.cpp
TableCellBox.h Everywhere: Run clang-format 2022-04-01 21:24:45 +01:00
TableFormattingContext.cpp LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
TableFormattingContext.h LibWeb: Size table cells using a combination of min- and max-widths 2022-03-29 00:39:57 +02:00
TableRowBox.cpp
TableRowBox.h
TableRowGroupBox.cpp
TableRowGroupBox.h
TextNode.cpp LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
TextNode.h LibWeb: Express intrinsic size layout via size constraints 2022-07-11 18:57:45 +02:00
TreeBuilder.cpp LibWeb: Tidy up Layout::TreeBuilder ancestor stack a little bit 2022-04-13 19:52:25 +02:00
TreeBuilder.h LibWeb: Tidy up Layout::TreeBuilder ancestor stack a little bit 2022-04-13 19:52:25 +02:00