1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:38:11 +00:00
serenity/Libraries/LibWeb/Layout
Andreas Kling 6d7892cfc4 LibWeb: Whitespace that causes a line to wrap should be hidden
We were only pruning trailing whitespace on lines. This patch makes it
so we also don't add whitespace as the leading line box fragment on new
lines.

This logic is pretty crufty and I think we can do better, but for now
I've just made it handle this extra case so we can stop having lines
that start with a space character. :^)
2020-12-17 21:10:57 +01:00
..
BlockBox.cpp LibWeb: Always break around inline-blocks in AllPossibleLineBreaks mode 2020-12-17 01:42:03 +01:00
BlockBox.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
BlockFormattingContext.cpp LibWeb: Fix shrink-to-fit layout for position:absolute 2020-12-17 01:47:42 +01:00
BlockFormattingContext.h LibWeb: Don't place floating boxes before everything else 2020-12-12 19:31:46 +01:00
Box.cpp LibWeb: Put final foreground/background colors in LayoutStyle 2020-12-15 19:33:53 +01:00
Box.h LibWeb: Store layout box model metrics as floats 2020-12-12 21:28:29 +01:00
BoxModelMetrics.cpp LibWeb: Store layout box model metrics as floats 2020-12-12 21:28:29 +01:00
BoxModelMetrics.h LibWeb: Store layout box model metrics as floats 2020-12-12 21:28:29 +01:00
BreakNode.cpp LibWeb: Pass current target box to BFC::run() 2020-12-06 20:05:04 +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: Apply 'min-width' and 'max-width' constraints to replaced boxes 2020-12-12 00:29:49 +01:00
FormattingContext.h LibWeb: Apply 'min-width' and 'max-width' constraints to replaced boxes 2020-12-12 00:29:49 +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: Remove use of specified_style() in Layout::ImageBox 2020-12-15 20:50:58 +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: Generate the CSS::ValueID enum and its helper functions 2020-12-15 20:40:10 +01:00
InlineFormattingContext.h LibWeb: Dimension inline-block and replaced boxes during splitting 2020-12-15 19:33:53 +01:00
InlineNode.cpp LibWeb: Put final foreground/background colors in LayoutStyle 2020-12-15 19:33:53 +01:00
InlineNode.h LibWeb: First slightly naive implementation of CSS floats :^) 2020-12-05 22:51:03 +01:00
LayoutPosition.cpp LibWeb: Make DOM::Range more suitable for JS. 2020-12-09 21:05:06 +01:00
LayoutPosition.h LibWeb: Make DOM::Range more suitable for JS. 2020-12-09 21:05:06 +01:00
LayoutStyle.h LibWeb: Use IdentifierStyleValue for CSS 'list-style-type' 2020-12-15 19:33:53 +01:00
LineBox.cpp LibWeb: Whitespace that causes a line to wrap should be hidden 2020-12-17 21:10:57 +01:00
LineBox.h LibWeb: Whitespace that causes a line to wrap should be hidden 2020-12-17 21:10:57 +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: Use IdentifierStyleValue for CSS 'list-style-type' 2020-12-15 19:33:53 +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: Put final foreground/background colors in LayoutStyle 2020-12-15 19:33:53 +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: The fallback 'color' value should be black, not transparent 2020-12-16 15:46:43 +01:00
Node.h LibWeb: Paint positioned elements after non-positioned ones 2020-12-06 20:05:04 +01:00
ReplacedBox.cpp LibWeb: Dimension inline-block and replaced boxes during splitting 2020-12-15 19:33:53 +01:00
ReplacedBox.h LibWeb: Move replaced element layout out of Layout::ReplacedBox 2020-12-11 22:59:46 +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: Pass current target box to BFC::run() 2020-12-06 20:05:04 +01:00
TableFormattingContext.h LibWeb: Pass current target box to BFC::run() 2020-12-06 20:05:04 +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: Whitespace that causes a line to wrap should be hidden 2020-12-17 21:10:57 +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