ladybird/Userland/Libraries/LibWeb/Layout
Pavel Panchekha 9075f64cac
Some checks are pending
CI / Lagom (false, NO_FUZZ, ubuntu-22.04, Linux, GNU) (push) Waiting to run
CI / Lagom (false, FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
CI / Lagom (false, NO_FUZZ, macos-14, macOS, Clang) (push) Waiting to run
CI / Lagom (true, NO_FUZZ, ubuntu-22.04, Linux, Clang) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (macos-14, macOS, macOS-universal2) (push) Waiting to run
Package the js repl as a binary artifact / build-and-package (ubuntu-22.04, Linux, Linux-x86_64) (push) Waiting to run
Run test262 and test-wasm / run_and_update_results (push) Waiting to run
Lint Code / lint (push) Waiting to run
Push notes / build (push) Waiting to run
LibWeb: Change inline float clearance to not reset margin collapsing
When a block container has `clear` set and some clearance is applied,
that clearance prevents margins from adjoining and therefore resets
the margin state. But when a floating box has `clear` set, that
clearance only goes between floating boxes so should not reset margin
state. BlockFormattingContexts already do that correctly, and this PR
changes InlineFormattingContext to do the same.

Fixes #1462; adds reduced input from that issue as test.
2024-09-21 01:55:43 +02:00
..
AudioBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
AudioBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
AvailableSpace.cpp LibWeb: Port AvailableSpace from DeprecatedString to String 2023-11-28 17:15:27 -05:00
AvailableSpace.h LibWeb: Port AvailableSpace from DeprecatedString to String 2023-11-28 17:15:27 -05:00
BlockContainer.cpp LibWeb: Allocate CSS::ComputedValues objects on the heap 2024-01-27 12:27:44 +01:00
BlockContainer.h LibWeb: Allocate CSS::ComputedValues objects on the heap 2024-01-27 12:27:44 +01:00
BlockFormattingContext.cpp LibWeb: Resolve floating box's paddings before width calculation 2024-09-18 10:07:14 +02:00
BlockFormattingContext.h LibWeb: Avoid layout run to calculate auto height of FC child in BFC 2024-09-17 07:58:07 +02:00
Box.cpp LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
Box.h LibWeb: Reset a vector of contained abspos before collecting them again 2024-09-13 16:48:51 +02:00
BoxModelMetrics.cpp Everything: Move to SPDX license identifiers in all files. 2021-04-22 11:22:27 +02:00
BoxModelMetrics.h LibWeb+Browser+WebContent: Convert BoxModelMetrics to new pixel units 2023-01-05 17:42:31 +01:00
BreakNode.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
BreakNode.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
CanvasBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
CanvasBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
CheckBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
CheckBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
FlexFormattingContext.cpp LibWeb: Fix "box-sizing: border-box" resolution for abspos items 2024-09-17 07:56:18 +02:00
FlexFormattingContext.h LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
FormAssociatedLabelableNode.h LibWeb: Make the layout tree GC-allocated 2022-10-20 15:16:23 +02:00
FormattingContext.cpp LibWeb: Print FIXME instead of crashing in abspos SVG element layout 2024-09-18 15:50:05 +02:00
FormattingContext.h LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
FrameBox.cpp LibWeb+WebContent: Move scrollbar painting into WebContent 2024-06-05 07:03:42 +02:00
FrameBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
GridFormattingContext.cpp LibWeb: Fix "box-sizing: border-box" resolution for abspos items 2024-09-17 07:56:18 +02:00
GridFormattingContext.h LibWeb: Use grid area as available size for abspos contained in GFC 2024-09-12 21:07:41 +02:00
ImageBox.cpp LibWeb: Remove unused includes 2024-08-09 17:01:50 +01:00
ImageBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ImageProvider.cpp LibWeb: Generalize ImageBox and ImagePaintable for any ImageProvider 2024-02-19 11:07:30 +01:00
ImageProvider.h LibWeb: Visit ImageProvider from Layout::ImageBox 2024-02-27 16:53:13 +01:00
InlineFormattingContext.cpp LibWeb: Change inline float clearance to not reset margin collapsing 2024-09-21 01:55:43 +02:00
InlineFormattingContext.h LibWeb: Save layout mode inside formatting context object 2024-09-11 07:59:52 +02:00
InlineLevelIterator.cpp LibGfx+LibWeb: Simplify text shaping API by removing per glyph callback 2024-09-15 15:42:36 +02:00
InlineLevelIterator.h LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
InlineNode.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
InlineNode.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
Label.cpp LibWeb: Add Web::UIEvents::MouseButton enum, drop dependency on LibGUI 2024-06-02 20:24:42 +02:00
Label.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
LabelableNode.cpp LibWeb: Move mouse event and label logic from layout to painting tree 2022-03-11 00:21:49 +01:00
LabelableNode.h LibWeb: Make the layout tree GC-allocated 2022-10-20 15:16:23 +02:00
LayoutState.cpp LibWeb: Return used values for grid tracks in getComputedStyle() 2024-09-09 12:48:06 +02:00
LayoutState.h LibWeb: Make FC of containing block responsible for abspos layout 2024-09-12 07:36:32 +02:00
LineBox.cpp LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
LineBox.h LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
LineBoxFragment.cpp LibGfx+LibWeb: Remove DrawEmoji variant in GlyphRun 2024-09-06 08:30:30 -04:00
LineBoxFragment.h LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
LineBuilder.cpp LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
LineBuilder.h LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
ListItemBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ListItemBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ListItemMarkerBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ListItemMarkerBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
Node.cpp LibWeb/CSS: Rename CalculatedStyleValue -> CSSMathValue 2024-09-18 20:38:41 +01:00
Node.h LibWeb: Add "position: sticky" support 2024-08-30 19:03:06 +02:00
RadioButton.cpp LibWeb: Add Web::UIEvents::MouseButton enum, drop dependency on LibGUI 2024-06-02 20:24:42 +02:00
RadioButton.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
ReplacedBox.cpp LibWeb: Remove Layout::Node::set_inline() 2022-10-06 15:29:38 +02:00
ReplacedBox.h LibWeb: Move "natural size" concept into Layout::Box 2023-06-09 20:37:51 +02:00
SVGBox.cpp LibWeb: Make SVG <svg> elements behave as CSS replaced elements 2022-03-19 12:42:10 +01:00
SVGBox.h LibWeb: Make the layout tree GC-allocated 2022-10-20 15:16:23 +02:00
SVGClipBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGClipBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGForeignObjectBox.cpp LibWeb: Add layout node and paintable for SVGForeignObjectElement 2024-04-27 07:10:20 +02:00
SVGForeignObjectBox.h LibWeb: Add layout node and paintable for SVGForeignObjectElement 2024-04-27 07:10:20 +02:00
SVGFormattingContext.cpp LibWeb: Save layout mode inside formatting context object 2024-09-11 07:59:52 +02:00
SVGFormattingContext.h LibWeb: Save layout mode inside formatting context object 2024-09-11 07:59:52 +02:00
SVGGeometryBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGGeometryBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGGraphicsBox.cpp LibWeb: Make SVG <g> elements generate a SVGGraphicsPaintable 2023-04-19 07:52:26 +02:00
SVGGraphicsBox.h LibWeb: Make SVG <g> elements generate a SVGGraphicsPaintable 2023-04-19 07:52:26 +02:00
SVGImageBox.cpp LibWeb/SVG: Implement SVGImageElement 2024-08-29 06:28:44 +02:00
SVGImageBox.h LibWeb/SVG: Implement SVGImageElement 2024-08-29 06:28:44 +02:00
SVGMaskBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGMaskBox.h LibJS+LibWeb: Fix a ton of JS_CELL-like macro issues 2024-05-30 09:29:20 -06:00
SVGSVGBox.cpp LibWeb: Derive SVG root's natural size from width/height attributes 2024-08-22 15:29:29 +02:00
SVGSVGBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGTextBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGTextBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGTextPathBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
SVGTextPathBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
TableFormattingContext.cpp LibWeb: Assign static position for abspos boxes nested into TFC 2024-09-14 15:04:08 +02:00
TableFormattingContext.h LibWeb: Assign static position for abspos boxes nested into TFC 2024-09-14 15:04:08 +02:00
TableGrid.cpp LibWeb: Use TraversalDecision for multi level Node traversal methods 2024-05-07 16:45:28 -06:00
TableGrid.h LibWeb: Use IterationDecision in single level Node iteration methods 2024-05-07 16:45:28 -06:00
TableWrapper.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
TableWrapper.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
TextNode.cpp LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
TextNode.h LibWeb: Layout text chunks based on their Unicode direction 2024-08-31 11:49:47 +02:00
TreeBuilder.cpp LibWeb: Rename IdentifierStyleValue -> CSSKeywordValue 2024-08-15 13:58:38 +01:00
TreeBuilder.h LibWeb: Lay out SVG <clipPath> uses 2024-03-29 21:59:56 +01:00
VideoBox.cpp LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
VideoBox.h LibWeb: Add calls to JS_{DECLARE,DEFINE}_ALLOCATOR() 2024-04-09 09:13:06 +02:00
Viewport.cpp LibWeb: Fix handling of find-in-page with pseudo-element content 2024-07-10 19:31:57 +01:00
Viewport.h LibWeb: Cache text blocks used by find in page 2024-07-03 15:35:14 +02:00