1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-10 06:47:34 +00:00
serenity/Libraries/LibWeb/Layout
Andreas Kling 615a4d4f71 LibWeb: First slightly naive implementation of CSS floats :^)
Boxes can now be floated left or right, which makes text within the
same block formatting context flow around them.

We were creating way too many block formatting contexts. As it turns
out, we don't need one for every new block, but rather there's a set
of rules that determines whether a given block creates a new block
formatting context.

Each BFC keeps track of the floating boxes within it, and IFC's can
then query it to find the available space for line boxes.

There's a huge hack in here where we assume all lines are the exact
line-height. Making this work with vertically non-uniform lines will
require some architectural changes.
2020-12-05 22:51:03 +01:00
..
BlockBox.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
BlockBox.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
BlockFormattingContext.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
BlockFormattingContext.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
Box.cpp LibWeb: Move border painting from Layout::Box to a free function 2020-12-04 18:02:21 +01:00
Box.h LibWeb: Move border painting from Layout::Box to a free function 2020-12-04 18:02:21 +01:00
BoxModelMetrics.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
BoxModelMetrics.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
BreakNode.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
BreakNode.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
ButtonBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ButtonBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
CanvasBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
CanvasBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
CheckBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
CheckBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
FormattingContext.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
FormattingContext.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
FrameBox.cpp LibWeb: Fix build with DEBUG_HIGHLIGHT_FOCUSED_FRAME 2020-11-22 16:07:53 +01:00
FrameBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ImageBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ImageBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
InitialContainingBlockBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
InitialContainingBlockBox.h LibWeb: Rename LayoutNode::is_root() => is_initial_containing_block() 2020-12-04 16:27:07 +01:00
InlineFormattingContext.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
InlineFormattingContext.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
InlineNode.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
InlineNode.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
LayoutPosition.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
LayoutPosition.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
LayoutStyle.h LibWeb: Compute the final border-style property before painting 2020-12-04 16:11:55 +01:00
LineBox.cpp LibWeb: Make LineBox take incoming fragment size as floats 2020-12-04 21:06:27 +01:00
LineBox.h LibWeb: Make LineBox take incoming fragment size as floats 2020-12-04 21:06:27 +01:00
LineBoxFragment.cpp LibWeb: Move border painting from Layout::Box to a free function 2020-12-04 18:02:21 +01:00
LineBoxFragment.h LibWeb: Make LineBoxFragment store non-const Layout::Node& 2020-12-04 15:46:58 +01:00
ListItemBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ListItemBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ListItemMarkerBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
ListItemMarkerBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
Node.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
Node.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
ReplacedBox.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
ReplacedBox.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
SVGBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGGraphicsBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGGraphicsBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGPathBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGPathBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGSVGBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
SVGSVGBox.h LibWeb: Allow <svg> layout boxes to have children 2020-11-29 16:23:12 +01:00
TableBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableCellBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableCellBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableFormattingContext.cpp LibWeb: Auto-size table box height to fit all the rows 2020-11-29 22:39:01 +01:00
TableFormattingContext.h LibWeb: Keep track of the parent of each formatting context 2020-11-25 21:26:58 +01:00
TableRowBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableRowBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableRowGroupBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TableRowGroupBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
TextNode.cpp LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
TextNode.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
TreeBuilder.cpp LibWeb: Allow inline-block boxes to have non-inline children 2020-11-29 22:26:54 +01:00
TreeBuilder.h LibWeb: Don't put block boxes inside inlines 2020-11-26 21:22:42 +01:00
WidgetBox.cpp LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00
WidgetBox.h LibWeb: Rename LayoutNode classes and move them into Layout namespace 2020-11-22 15:56:27 +01:00