Andreas Kling
90edaabc4b
LibWeb: Add an "undefined" state to Length
...
A default-constructed Length now gives you an undefined length value,
which can be used to signify the absence of a value.
2020-06-24 11:24:00 +02:00
Andreas Kling
5744dd43c5
LibWeb: Remove default Length constructor and add make_auto()/make_px()
...
To prepare for adding an undefined/empty state for Length, let's first
move away from Length() creating an auto value.
2020-06-24 11:08:46 +02:00
Andreas Kling
ae181e1573
LibWeb: Always inline absolute Length to_px() conversion
...
Only do the relative Length units out of line.
2020-06-23 23:21:58 +02:00
Andreas Kling
731685468a
LibWeb: Start fleshing out support for relative CSS units
...
This patch introduces support for more than just "absolute px" units in
our Length class. It now also supports "em" and "rem", which are units
relative to the font-size of the current layout node and the <html>
element's layout node respectively.
2020-06-07 17:55:46 +02:00
Andreas Kling
830a57c6b2
LibWeb: Rename directory LibHTML => LibWeb
...
Let's rename this to LibWeb since it aims to provide more parts of the
web platform than just HTML. :^)
2020-03-07 10:32:51 +01:00