diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2023-03-30 16:57:49 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2023-03-30 21:29:50 +0200 |
commit | fa90a3bb4fc3e4a8a0caa0b80a7ac87765ab67f9 (patch) | |
tree | 2d6acd146dcc1107c56d6a28d2da6d69ddde1f3b /Userland/Libraries/LibWeb/CSS/ComputedValues.h | |
parent | b727f8113f9280e64e18dcbb0ed2921b19e51083 (diff) | |
download | serenity-fa90a3bb4fc3e4a8a0caa0b80a7ac87765ab67f9.zip |
LibWeb: Introduce CalculatedOr type
This is intended as a replacement for Length and friends each holding a
`RefPtr<CalculatedStyleValue>`. Instead, let's make the types explicit
about whether they are calculated or not. This then means a Length is
always a Length, and won't require including `StyleValue.h`.
As noted, it's probably nicer for LengthOrCalculated to live in
`Length.h`, but we can't do that until Length stops including
`StyleValue.h`.
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/ComputedValues.h')
0 files changed, 0 insertions, 0 deletions