diff options
author | Andreas Kling <kling@serenityos.org> | 2022-09-27 18:12:54 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-09-29 20:09:44 +0200 |
commit | 7abb512a86e909df602e45e55f9395b758233bf3 (patch) | |
tree | c9ecb229fffce76511d2e04bb152e58e6a471815 /Userland/Libraries/LibWeb/CSS/StyleValue.cpp | |
parent | df416bb822f6f4fa3856fb1764702feabbcc69c3 (diff) | |
download | serenity-7abb512a86e909df602e45e55f9395b758233bf3.zip |
LibWeb: Make PercentageOr<T>::contains_percentage() handle more cases
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/StyleValue.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/StyleValue.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp index 31330f3987..6d37f1d3fb 100644 --- a/Userland/Libraries/LibWeb/CSS/StyleValue.cpp +++ b/Userland/Libraries/LibWeb/CSS/StyleValue.cpp @@ -2272,4 +2272,9 @@ bool CalculatedStyleValue::CalcValue::contains_percentage() const [](auto const&) { return false; }); } +bool calculated_style_value_contains_percentage(CalculatedStyleValue const& value) +{ + return value.contains_percentage(); +} + } |