mirror of
https://github.com/RGBCube/serenity
synced 2026-01-16 22:20:59 +00: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. |
||
|---|---|---|
| .. | ||
| Layout | ||
| Text | ||
| CMakeLists.txt | ||
| rebaseline-libweb-test | ||
| TestCSSIDSpeed.cpp | ||
| TestHTMLTokenizer.cpp | ||
| tokenizer-test.html | ||