Skip to content

Commit ef8dcb2

Browse files
Calme1709kalenikaliaksandr
authored andcommitted
LibWeb: Remove unused code in compute_properties
1 parent fbcef93 commit ef8dcb2

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
@@ -2568,17 +2568,6 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
25682568
// 5. Add or modify CSS-defined animations
25692569
process_animation_definitions(computed_style, abstract_element);
25702570

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

0 commit comments

Comments
 (0)