1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-08 17:27:35 +00:00
serenity/Userland/Libraries/LibWeb/Layout
Tobias Christiansen d104885757 LibWeb: Flexbox: Assume Block when finding max main size of flex-column
This is a hack, but it seems to do quite okay.

What we should do is to find the largest size the Box could want in its
main axis. To do that we have to layout the Box according to the needed
LayoutMode. For flex-rows we do as requested and try to make the Box as
wide as we want.
However, for flex-columns we simply assume the Box is a Block and we
calculate their height according to this.
2021-09-18 15:50:47 +02:00
..
BlockBox.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
BlockBox.h AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
BlockFormattingContext.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
BlockFormattingContext.h
Box.cpp LibWeb: Use floating-point math for border-radius rendering 2021-09-18 12:21:42 +02:00
Box.h LibWeb: Use floating-point math for border-radius rendering 2021-09-18 12:21:42 +02:00
BoxModelMetrics.cpp
BoxModelMetrics.h
BreakNode.cpp LibWeb: Make Layout::Node::paint() pure virtual 2021-09-15 15:25:47 +02:00
BreakNode.h LibWeb: Make Layout::Node::paint() pure virtual 2021-09-15 15:25:47 +02:00
ButtonBox.cpp
ButtonBox.h
CanvasBox.cpp
CanvasBox.h
CheckBox.cpp
CheckBox.h
FlexFormattingContext.cpp LibWeb: Flexbox: Assume Block when finding max main size of flex-column 2021-09-18 15:50:47 +02:00
FlexFormattingContext.h LibWeb: Implement "out-of-flow" property of Layout Box 2021-09-15 13:55:25 +02:00
FormattingContext.cpp LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
FormattingContext.h LibWeb: Implement "out-of-flow" property of Layout Box 2021-09-15 13:55:25 +02:00
FrameBox.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
FrameBox.h AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
ImageBox.cpp LibWeb: Rename frame_did_set_viewport_rect() => browsing_context_*() 2021-09-08 11:12:22 +02:00
ImageBox.h LibWeb: Rename frame_did_set_viewport_rect() => browsing_context_*() 2021-09-08 11:12:22 +02:00
InitialContainingBlock.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
InitialContainingBlock.h LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
InlineFormattingContext.cpp AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
InlineFormattingContext.h
InlineNode.cpp LibWeb: Paint inspection outline for InlineNodes :^) 2021-08-23 15:59:29 +02:00
InlineNode.h LibWeb: Paint inspection outline for InlineNodes :^) 2021-08-23 15:59:29 +02:00
Label.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
Label.h
LabelableNode.h
LayoutPosition.cpp
LayoutPosition.h
LineBox.cpp LibWeb: Properly handle newlines at the end of LineBoxes 2021-08-29 01:43:09 +02:00
LineBox.h
LineBoxFragment.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
LineBoxFragment.h
ListItemBox.cpp Everywhere: Use tobyase@serenityos.org for my copyright headers 2021-08-09 21:43:05 +02:00
ListItemBox.h
ListItemMarkerBox.cpp Everywhere: Use tobyase@serenityos.org for my copyright headers 2021-08-09 21:43:05 +02:00
ListItemMarkerBox.h Everywhere: Use tobyase@serenityos.org for my copyright headers 2021-08-09 21:43:05 +02:00
Node.cpp LibWeb: Also avoid setting definite size for height 2021-09-18 15:50:47 +02:00
Node.h LibWeb: Make Layout::Node::paint() pure virtual 2021-09-15 15:25:47 +02:00
RadioButton.cpp
RadioButton.h
ReplacedBox.cpp
ReplacedBox.h AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
SVGBox.cpp LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGFormattingContext.cpp LibWeb: Implement very naive layout of <path> within <svg> 2021-09-18 01:39:59 +02:00
SVGFormattingContext.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGGraphicsBox.cpp AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
SVGGraphicsBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGPathBox.cpp LibWeb: Remove bogus offset when painting an SVG <path> box 2021-09-18 01:39:59 +02:00
SVGPathBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGSVGBox.cpp LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
SVGSVGBox.h LibWeb: Add SVGFormattingContext to handle SVG box trees 2021-09-18 01:39:59 +02:00
TableBox.cpp
TableBox.h
TableCellBox.cpp AK: Rename downcast<T> => verify_cast<T> 2021-06-24 19:57:01 +02:00
TableCellBox.h
TableFormattingContext.cpp
TableFormattingContext.h
TableRowBox.cpp
TableRowBox.h
TableRowGroupBox.cpp
TableRowGroupBox.h
TextNode.cpp LibWeb: Make Layout::Node::paint() pure virtual 2021-09-15 15:25:47 +02:00
TextNode.h LibWeb: Make Layout::Node::paint() pure virtual 2021-09-15 15:25:47 +02:00
TreeBuilder.cpp LibWeb: Rename InitialContainingBlockBox => InitialContainingBlock 2021-09-08 11:27:46 +02:00
TreeBuilder.h LibWeb: Ignore svg elements outside of <svg> when building layout tree 2021-08-05 20:17:08 +02:00