mirror of
https://github.com/fergalmoran/ladybird.git
synced 2026-01-19 15:06:33 +00:00
This improves the quality of our font rendering, especially when
animations are involved. Relevant changes:
* Skia fonts have their subpixel flag set, which means that individual
glyphs are rendered at subpixel offsets causing glyph runs as a
whole to look better.
* Fragment offsets are no longer rounded to whole device pixels, and
instead the floating point offset is kept. This allows us to pass
through the floating point baseline position all the way to the Skia
calls, which already expected that to be a float position.
The `scrollable-contains-table.html` ref test needed different table
headings since they would slightly inflate the column size in the test
file, but not the reference.
40 lines
2.5 KiB
Plaintext
40 lines
2.5 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x251 children: not-inline
|
|
BlockContainer <div> at (8,8) content-size 784x251 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,8) content-size 784x17 children: inline
|
|
frag 0 from TextNode start: 0, length: 54, rect: [344.515625,8 447.484375x17] baseline: 13.296875
|
|
"This text and the green square are both right aligned:"
|
|
TextNode <#text>
|
|
BlockContainer <div.square> at (692,25) content-size 100x100 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,125) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div> at (8,125) content-size 784x134 children: not-inline
|
|
BlockContainer <(anonymous)> at (8,125) content-size 784x34 children: inline
|
|
frag 0 from TextNode start: 1, length: 87, rect: [8,125 711.4375x17] baseline: 13.296875
|
|
"This text and the green square are both left aligned despite being nested in a div with"
|
|
frag 1 from TextNode start: 89, length: 14, rect: [8,142 94.296875x17] baseline: 13.296875
|
|
"align="right":"
|
|
TextNode <#text>
|
|
BlockContainer <div.square> at (8,159) content-size 100x100 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,259) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (8,259) content-size 784x0 children: inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x251]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,8 784x251]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,8 784x17]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.square) [692,25 100x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,125 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>) [8,125 784x134]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,125 784x34]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>.square) [8,159 100x100]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,259 784x0]
|
|
PaintableWithLines (BlockContainer(anonymous)) [8,259 784x0]
|