1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:17:36 +00:00

LibWeb: Fix accounting for gaps in auto-fit count calculation in GFC

Fixes a bug where gaps between repeated tracks were accounted for only
once instead of multiple times, corresponding to the repeat count.

Fixes https://github.com/SerenityOS/serenity/issues/22823
This commit is contained in:
Aliaksandr Kalenik 2024-01-17 14:43:04 +01:00 committed by Andreas Kling
parent 13f007aadb
commit 0a09ff698f
3 changed files with 46 additions and 11 deletions

View file

@ -0,0 +1,19 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x33 [BFC] children: not-inline
Box <body> at (8,8) content-size 784x17 [GFC] children: not-inline
BlockContainer <div> at (8,8) content-size 63.125x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 7, rect: [8,8 63.125x17] baseline: 13.296875
"Explore"
TextNode <#text>
BlockContainer <div> at (121.125,8) content-size 100.0625x17 [BFC] children: inline
frag 0 from TextNode start: 0, length: 12, rect: [121.125,8 100.0625x17] baseline: 13.296875
"Wiki Content"
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x33]
PaintableBox (Box<BODY>) [8,8 784x17]
PaintableWithLines (BlockContainer<DIV>) [8,8 63.125x17]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<DIV>) [121.125,8 100.0625x17]
TextPaintable (TextNode<#text>)