Skip to content

Commit fa401e4

Browse files
committed
LibWeb: Remove unused code in compute_properties
1 parent 70b6a5e commit fa401e4

File tree

1 file changed

+0
-11
lines changed

1 file changed

+0
-11
lines changed

Libraries/LibWeb/CSS/StyleComputer.cpp

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -2567,17 +2567,6 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
25672567
// 5. Add or modify CSS-defined animations
25682568
process_animation_definitions(computed_style, abstract_element);
25692569

2570-
// FIXME: Support multiple entries for `animation` properties
2571-
// Animation declarations [css-animations-2]
2572-
auto animation_name = [&]() -> Optional<String> {
2573-
auto const& animation_name = computed_style->property(PropertyID::AnimationName);
2574-
if (animation_name.is_keyword() && animation_name.to_keyword() == Keyword::None)
2575-
return OptionalNone {};
2576-
if (animation_name.is_string())
2577-
return animation_name.as_string().string_value().to_string();
2578-
return animation_name.to_string(SerializationMode::Normal);
2579-
}();
2580-
25812570
auto animations = abstract_element.element().get_animations_internal(Animations::GetAnimationsOptions { .subtree = false });
25822571
if (animations.is_exception()) {
25832572
dbgln("Error getting animations for element {}", abstract_element.debug_description());

0 commit comments

Comments
 (0)