1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-22 11:05:07 +00:00
serenity/Libraries/LibHTML/Layout
Andreas Kling 847b232680 LibHTML: Divide the "line spacing" evenly between lines of text
Before this patch, all of the excess spacing caused by line-height was
"padding" the line boxes below the text.

To fix this, we make line box fragments use the font height as their
height, and then let the inline layout algorithm adjust the Y positions
to distribute the vertical space.
2019-11-25 18:14:52 +01:00
..
BoxModelMetrics.cpp LibHTML: Rename ComputedStyle to BoxModelMetrics 2019-10-04 15:50:50 +02:00
BoxModelMetrics.h LibHTML: Use floating point numbers throughout the layout tree 2019-11-18 16:30:18 +01:00
LayoutBlock.cpp LibHTML: Divide the "line spacing" evenly between lines of text 2019-11-25 18:14:52 +01:00
LayoutBlock.h LibHTML+Browser: Support scrolling to anchor with <a href="#foo"> 2019-10-20 10:07:26 +02:00
LayoutBox.cpp LibHTML: Join border edges nicely when painting boxes 2019-11-25 14:37:04 +01:00
LayoutBox.h LibHTML: Join border edges nicely when painting boxes 2019-11-25 14:37:04 +01:00
LayoutBreak.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutBreak.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutDocument.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutDocument.h LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
LayoutImage.cpp LibHTML: LayoutImage should not dereference a null bitmap 2019-11-18 20:26:32 +01:00
LayoutImage.h LibHTML: Implement basic layout for inline <img alt> 2019-10-05 23:29:01 +02:00
LayoutInline.cpp LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutInline.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutListItem.cpp LibHTML: Use floating point numbers throughout the layout tree 2019-11-18 16:30:18 +01:00
LayoutListItem.h LibHTML: Add LayoutNode classes for "display: list-item" and its marker 2019-10-11 23:16:53 +02:00
LayoutListItemMarker.cpp LibHTML: Use floating point numbers throughout the layout tree 2019-11-18 16:30:18 +01:00
LayoutListItemMarker.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutNode.cpp LibHTML: Use floating point numbers throughout the layout tree 2019-11-18 16:30:18 +01:00
LayoutNode.h LibHTML: Use floating point numbers throughout the layout tree 2019-11-18 16:30:18 +01:00
LayoutPosition.h LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00
LayoutReplaced.cpp LibHTML: Replaced elements should not break lines at start of line 2019-10-19 09:44:40 +02:00
LayoutReplaced.h LibHTML: Introduce LayoutBox and LayoutNodeWithStyleAndBoxModelMetrics 2019-10-15 16:48:38 +02:00
LayoutTable.cpp LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTable.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableCell.cpp LibHTML: Add stub classes for basic table layout 2019-10-17 23:39:31 +02:00
LayoutTableCell.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableRow.cpp LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutTableRow.h LibHTML: Add typed child/sibling traversal helpers for LayoutNode 2019-10-18 09:38:12 +02:00
LayoutText.cpp LibHTML: Divide the "line spacing" evenly between lines of text 2019-11-25 18:14:52 +01:00
LayoutText.h LibHTML: Use LayoutText::text_for_rendering() in layout tree dumps 2019-11-19 18:36:33 +01:00
LayoutTreeBuilder.cpp LibHTML: Hard-code LayoutTable to never have inline children 2019-10-17 23:39:31 +02:00
LayoutTreeBuilder.h LibHTML: Move layout tree building to a LayoutTreeBuilder class 2019-10-15 14:24:26 +02:00
LineBox.cpp LibHTML: Remove trailing whitespace in line boxes 2019-10-20 17:20:20 +02:00
LineBox.h LibHTML: Remove trailing whitespace in line boxes 2019-10-20 17:20:20 +02:00
LineBoxFragment.cpp LibHTML: Fix bug in removal of trailing whitespace from line boxes 2019-11-19 19:21:47 +01:00
LineBoxFragment.h LibHTML: Build some foundation for text selection 2019-11-05 22:13:26 +01:00