mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-03 13:02:09 +02:00
Although DistinctNumeric, which is supposed to abstract the underlying type, was used to represent CSSPixels, we have a whole bunch of places in the layout code that assume CSSPixels::value() returns a floating-point type. This assumption makes it difficult to replace the underlying type in CSSPixels with a non-floating type. To make it easier to transition CSSPixels to fixed-point math, one step we can take is to prevent access to the underlying type using value() and instead use explicit conversions with the to_float(), to_double(), and to_int() methods.
15 lines
927 B
Plaintext
15 lines
927 B
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 784x23.999999 children: not-inline
|
|
Box <div.grid-container> at (8,8) content-size 784x23.999999 [GFC] children: not-inline
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|
|
BlockContainer <div.wrapper> at (8,8) content-size 64x23.999999 [BFC] children: inline
|
|
line 0 width: 64, height: 23.999999, bottom: 23.999999, baseline: 23.999999
|
|
frag 0 from ImageBox start: 0, length: 0, rect: [8,8 64x23.999999]
|
|
TextNode <#text>
|
|
ImageBox <img> at (8,8) content-size 64x23.999999 children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> (not painted) [BFC] children: inline
|
|
TextNode <#text>
|