1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 13:17:35 +00:00

LibWeb: Remove unused CSS::StyleProperties::string_or_fallback()

This commit is contained in:
Andreas Kling 2021-08-26 11:26:18 +02:00
parent bb399c6955
commit cf8f1c5a5f
2 changed files with 0 additions and 9 deletions

View file

@ -107,14 +107,6 @@ LengthBox StyleProperties::length_box(CSS::PropertyID left_id, CSS::PropertyID t
return box;
}
String StyleProperties::string_or_fallback(CSS::PropertyID id, const StringView& fallback) const
{
auto value = property(id);
if (!value.has_value())
return fallback;
return value.value()->to_string();
}
Color StyleProperties::color_or_fallback(CSS::PropertyID id, const DOM::Document& document, Color fallback) const
{
auto value = property(id);