mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-01-26 19:22:30 -05:00
147c3b3d97
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.
135 lines
8.3 KiB
Text
135 lines
8.3 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x419.999999 [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (0,0) content-size 800x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <body> at (20,20) content-size 480x379.999999 children: not-inline
|
|
BlockContainer <(anonymous)> at (20,20) content-size 480x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <dl> at (25,25) content-size 470x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <dt> at (40,40) content-size 49.999x280 floating [BFC] children: inline
|
|
line 0 width: 28.310546, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 6, rect: [40,40 28.310546x10]
|
|
"toggle"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <dd> at (135,45) content-size 340x270 floating [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (135,45) content-size 340x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <ul> at (135,45) content-size 340x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <li> at (150,60) content-size 50x90 floating [BFC] children: inline
|
|
line 0 width: 37.880859, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 7, rect: [150,60 37.880859x10]
|
|
"the way"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <li#bar> at (235,55) content-size 139.978x90 floating [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (235,55) content-size 139.978x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <p> at (235,55) content-size 139.978x10 children: inline
|
|
line 0 width: 74.316406, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 14, rect: [235,55 74.316406x10]
|
|
"the world ends"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (235,65) content-size 139.978x0 children: inline
|
|
TextNode <#text>
|
|
InlineNode <form>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <p> at (235,65) content-size 139.978x18.999999 children: inline
|
|
line 0 width: 39.490234, height: 18.999999, bottom: 18.999999, baseline: 12.498046
|
|
frag 0 from TextNode start: 1, length: 5, rect: [235,65 27.490234x18.999999]
|
|
"bang "
|
|
frag 1 from RadioButton start: 0, length: 0, rect: [262,65 12x12]
|
|
TextNode <#text>
|
|
RadioButton <input> at (262,65) content-size 12x12 inline-block children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <p> at (235,83.999999) content-size 139.978x18.999999 children: inline
|
|
line 0 width: 57.15625, height: 18.999999, bottom: 18.999999, baseline: 12.498046
|
|
frag 0 from TextNode start: 1, length: 8, rect: [235,83.999999 45.15625x18.999999]
|
|
"whimper "
|
|
frag 1 from RadioButton start: 0, length: 0, rect: [280,83.999999 12x12]
|
|
TextNode <#text>
|
|
RadioButton <input> at (280,83.999999) content-size 12x12 inline-block children: not-inline
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (235,102.999999) content-size 139.978x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <li> at (409.978,60) content-size 50x90 floating [BFC] children: inline
|
|
line 0 width: 31.582031, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 6, rect: [409.978,60 31.582031x10]
|
|
"i grow"
|
|
line 1 width: 14.033203, height: 10, bottom: 20, baseline: 7.998046
|
|
frag 0 from TextNode start: 7, length: 3, rect: [409.978,70 14.033203x10]
|
|
"old"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <li#baz> at (145,185) content-size 100x100 floating [BFC] children: inline
|
|
line 0 width: 29.423828, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 6, rect: [145,185 29.423828x10]
|
|
"pluot?"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (135,45) content-size 340x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <blockquote> at (280,195) content-size 50x90 floating [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (280,195) content-size 50x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <address> at (280,195) content-size 50x20 children: inline
|
|
line 0 width: 17.275390, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 3, rect: [280,195 17.275390x10]
|
|
"bar"
|
|
line 1 width: 30.224609, height: 10, bottom: 20, baseline: 7.998046
|
|
frag 0 from TextNode start: 4, length: 6, rect: [280,205 30.224609x10]
|
|
"maids,"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (280,215) content-size 50x0 children: inline
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <h1> at (365,185) content-size 100x100 floating [BFC] children: inline
|
|
line 0 width: 56.416015, height: 10, bottom: 10, baseline: 7.998046
|
|
frag 0 from TextNode start: 0, length: 11, rect: [365,185 56.416015x10]
|
|
"sing to me,"
|
|
line 1 width: 65.449218, height: 10, bottom: 20, baseline: 7.998046
|
|
frag 0 from TextNode start: 12, length: 12, rect: [365,195 65.449218x10]
|
|
"erbarme dich"
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (20,30) content-size 480x0 children: inline
|
|
TextNode <#text>
|
|
BlockContainer <p> at (20,335) content-size 480x64.999999 children: inline
|
|
line 0 width: 473.642578, height: 12.999999, bottom: 12.999999, baseline: 9.498046
|
|
frag 0 from TextNode start: 1, length: 90, rect: [20,335 473.642578x12.999999]
|
|
"This is a nonsensical document, but syntactically valid HTML 4.0. All 100%-conformant CSS1"
|
|
line 1 width: 396.953125, height: 13, bottom: 25.999999, baseline: 9.498046
|
|
frag 0 from TextNode start: 92, length: 74, rect: [20,348 396.953125x12.999999]
|
|
"agents should be able to render the document elements above this paragraph"
|
|
line 2 width: 470.585937, height: 13, bottom: 38.999999, baseline: 9.498046
|
|
frag 0 from TextNode start: 167, length: 43, rect: [20,361 207.900390x12.999999]
|
|
"indistinguishably (to the pixel) from this "
|
|
frag 1 from TextNode start: 0, length: 20, rect: [228,361 103.007812x12.999999]
|
|
"reference rendering,"
|
|
frag 2 from TextNode start: 0, length: 31, rect: [331,361 159.677734x12.999999]
|
|
" (except font rasterization and"
|
|
line 3 width: 465.019531, height: 13.000000, bottom: 51.999999, baseline: 9.498046
|
|
frag 0 from TextNode start: 32, length: 89, rect: [20,374 465.019531x12.999999]
|
|
"form widgets). All discrepancies should be traceable to CSS1 implementation shortcomings."
|
|
line 4 width: 408.164062, height: 13.000001, bottom: 64.999999, baseline: 9.498046
|
|
frag 0 from TextNode start: 122, length: 67, rect: [20,387 345.556640x12.999999]
|
|
"Once you have finished evaluating this test, you can return to the "
|
|
frag 1 from TextNode start: 0, length: 11, rect: [366,387 59.892578x12.999999]
|
|
"parent page"
|
|
frag 2 from TextNode start: 0, length: 1, rect: [425,387 2.714843x12.999999]
|
|
"."
|
|
TextNode <#text>
|
|
InlineNode <a>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
InlineNode <a>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (20,399.999999) content-size 480x0 children: inline
|
|
TextNode <#text>
|