diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-07-27 13:45:05 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-27 17:03:55 +0200 |
commit | 7b4004d6828f6c133638f34e4d10382123ab3fb8 (patch) | |
tree | 2a55228611161d6b83c7c4a40c639593c4746b52 /Userland/Libraries/LibWeb/HTML | |
parent | 3fce4f7c9127c6dbec4a71b1aadd4be526f34e7c (diff) | |
download | serenity-7b4004d6828f6c133638f34e4d10382123ab3fb8.zip |
LibWeb: Ensure PercentageOr<T>::resolved() returns a concrete T
Which is to say, a T where `is_calculated()` is false.
As is becoming a repeating theme with CSS types, we have two states for
a FooPercentage that is a `calc()` expression: Either the FooPercentage
holds the CalculatedStyleValue directly, or it holds a Foo which itself
holds the CalculatedStyleValue. The first case was already handled to
return Foo, and with this patch, the second is too. :^)
Diffstat (limited to 'Userland/Libraries/LibWeb/HTML')
0 files changed, 0 insertions, 0 deletions