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:
parent
10aa06f16f
commit
c9062b4ed5
6 changed files with 3 additions and 48 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue