summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/HTML
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-07-27 13:45:05 +0100
committerAndreas Kling <kling@serenityos.org>2022-07-27 17:03:55 +0200
commit7b4004d6828f6c133638f34e4d10382123ab3fb8 (patch)
tree2a55228611161d6b83c7c4a40c639593c4746b52 /Userland/Libraries/LibWeb/HTML
parent3fce4f7c9127c6dbec4a71b1aadd4be526f34e7c (diff)
downloadserenity-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