1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 01:27:42 +00:00
serenity/Libraries/LibWeb/Layout
Andreas Kling 55a3575a7c LibWeb: More work on width of position:absolute elements
The shrink-to-fit width algorithm actually works a little bit different
in the absolute positioning context, so it can't share all of its code
with non-absolute positioning.

Also, inline-block elements were always inserting unnecessary line
breaks when splitting, which caused the preferred width to be smaller
than it should be. This patch fixes that as well, by just not breaking
after inline-block elements in LayoutMode::OnlyRequiredLineBreaks.
2020-06-18 21:16:29 +02:00
..
BoxModelMetrics.cpp LibWeb: Rename BoxModelMetrics::full_margin() => margin_box() 2020-06-12 13:44:11 +02:00
BoxModelMetrics.h LibWeb: Rename BoxModelMetrics::full_margin() => margin_box() 2020-06-12 13:44:11 +02:00
LayoutBlock.cpp LibWeb: More work on width of position:absolute elements 2020-06-18 21:16:29 +02:00
LayoutBlock.h LibWeb: More work on width of position:absolute elements 2020-06-18 21:16:29 +02:00
LayoutBox.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutBox.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutBreak.cpp LibWeb: Basic support for display:inline-block with width:auto 2020-05-26 22:02:27 +02:00
LayoutBreak.h LibWeb: Basic support for display:inline-block with width:auto 2020-05-26 22:02:27 +02:00
LayoutCanvas.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutCanvas.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutDocument.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutDocument.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutFrame.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutFrame.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutImage.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutImage.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutInline.cpp LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
LayoutInline.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
LayoutListItem.cpp LibWeb: Rework the layout engine to use relative offsets 2020-06-10 10:46:57 +02:00
LayoutListItem.h LibWeb: Basic support for display:inline-block with width:auto 2020-05-26 22:02:27 +02:00
LayoutListItemMarker.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutListItemMarker.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutNode.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutNode.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutPosition.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
LayoutReplaced.cpp LibWeb: Reorganize layout algorithm 2020-06-14 19:01:54 +02:00
LayoutReplaced.h LibWeb: Reorganize layout algorithm 2020-06-14 19:01:54 +02:00
LayoutTable.cpp LibWeb: Remove some unused functions from LayoutTable 2020-06-14 19:06:02 +02:00
LayoutTable.h LibWeb: Remove some unused functions from LayoutTable 2020-06-14 19:06:02 +02:00
LayoutTableCell.cpp LibWeb: Add LayoutTableCell::colspan() 2020-06-13 00:10:52 +02:00
LayoutTableCell.h LibWeb: Add LayoutTableCell::colspan() 2020-06-13 00:10:52 +02:00
LayoutTableRow.cpp LibWeb: Remove some unused functions in LayoutTableRow 2020-06-13 15:30:27 +02:00
LayoutTableRow.h LibWeb: Remove some unused functions in LayoutTableRow 2020-06-13 15:30:27 +02:00
LayoutTableRowGroup.cpp LibWeb: Reorganize layout algorithm 2020-06-14 19:01:54 +02:00
LayoutTableRowGroup.h LibWeb: More work on table layout 2020-06-13 00:12:23 +02:00
LayoutText.cpp LibWeb: Teach line layout to collapse whitespace across fragments 2020-06-13 15:03:16 +02:00
LayoutText.h LibWeb: Basic support for display:inline-block with width:auto 2020-05-26 22:02:27 +02:00
LayoutTreeBuilder.cpp LibWeb: Whine in debug log instead of asserting on partial layout FIXME 2020-06-06 22:15:17 +02:00
LayoutTreeBuilder.h LibWeb: Rename directory LibHTML => LibWeb 2020-03-07 10:32:51 +01:00
LayoutWidget.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LayoutWidget.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
LineBox.cpp LibWeb: Teach line layout to collapse whitespace across fragments 2020-06-13 15:03:16 +02:00
LineBox.h LibWeb: Teach line layout to collapse whitespace across fragments 2020-06-13 15:03:16 +02:00
LineBoxFragment.cpp LibWeb: Teach line layout to collapse whitespace across fragments 2020-06-13 15:03:16 +02:00
LineBoxFragment.h LibWeb: Teach line layout to collapse whitespace across fragments 2020-06-13 15:03:16 +02:00
StackingContext.cpp LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00
StackingContext.h LibWeb: Separate layout tree rendering into phases 2020-06-18 18:57:35 +02:00