1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-10-13 20:22:19 +00:00
serenity/Base/res
Andreas Kling 412b2313f3 LibWeb: Improve inline flow around floating boxes
This patch combines a number of techniques to make inline content flow
more correctly around floats:

- During inline layout, BFC now lets LineBuilder decide the Y coordinate
  when inserting a new float. LineBuilder has more information about the
  currently accumulated line, and can make better breaking decisions.

- When inserting a float on one side, and the top of the newly inserted
  float is below the bottommost float on the opposite side, we now reset
  the opposite side back to the start of that edge. This improves
  breaking behavior between opposite-side floats.

- After inserting a float during inline layout, we now recalculate the
  available space on the line, but don't adjust X offsets of already
  existing fragments. This is handled by update_last_line() anyway,
  so it was pointless busywork.

- When measuring whether a line can fit at a given Y coordinate, we now
  consider both the top and bottom Y values of the line. This fixes an
  issue where the bottom part of a line would bleed over other content
  (since we had only checked that the top Y coordinate of that line
  would fit.)

There are some pretty brain-dead algorithms in here that we need to make
smarter, but I didn't want to complicate this any further so I've left
FIXMEs about them instead.
2022-09-16 15:15:50 +02:00
..
apps Demos: Add Tubes :^) 2022-09-11 22:45:49 +01:00
color-palettes Base: Add pastel color palette 2022-02-10 10:22:17 +00:00
cursor-themes Base: Remove an upscaled version of a Hidden cursor 2022-09-01 14:27:07 +01:00
devel/templates HackStudio: Fix cpp-gui template 2022-09-01 14:25:31 +01:00
emoji Base: Add 13 emoji 2022-09-15 22:59:37 +00:00
fonts Base: Tweak Source font 2022-09-14 06:56:27 -04:00
graphics Base: Optimize a bunch of PNGs 2022-06-18 21:58:43 +04:30
html LibWeb: Improve inline flow around floating boxes 2022-09-16 15:15:50 +02:00
icons Demos: Add Tubes :^) 2022-09-11 22:45:49 +01:00
js/Spreadsheet Spreadsheet: Throw if lookup value doesn't exist and no default is given 2022-06-26 22:21:17 +01:00
keymaps Keymaps: Improve cs-cz and cs-cz-qwertz keymaps 2022-09-03 12:29:11 +01:00
terminal-colors Base: Add the Monokai terminal color scheme 2022-01-28 13:17:37 +01:00
themes Base: Update Chillychilly theme use calming background 2022-08-21 10:53:25 +01:00
wallpapers Base: Add back the OG grid wallpaper from back in the day, now as a PNG 2020-04-30 12:31:02 +02:00
fortunes.json Base: Add a quote to the fortunes database 2022-08-28 15:39:56 +01:00
words.txt Games: Add MasterWord 2022-03-18 04:55:21 -07:00