1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 13:18:13 +00:00

LibWeb: Remove now-unused CustomStyleValue

This commit is contained in:
Sam Atkins 2021-12-03 20:17:17 +00:00 committed by Andreas Kling
parent 10aa06f16f
commit c9062b4ed5
6 changed files with 3 additions and 48 deletions

View file

@ -572,13 +572,6 @@ void StyleComputer::cascade_declarations(StyleProperties& style, DOM::Element& e
if (important != property.important)
continue;
auto property_value = property.value;
if (property.value->is_custom_property()) {
auto custom_property_name = property.value->as_custom_property().custom_property_name();
auto resolved = resolve_custom_property(element, custom_property_name);
if (resolved.has_value()) {
property_value = resolved.value().value;
}
}
if (property.value->is_unresolved()) {
if (auto resolved = resolve_unresolved_style_value(element, property.property_id, property.value->as_unresolved()))
property_value = resolved.release_nonnull();