mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-12-08 06:09:58 +00:00
LibWeb: Remove unused code in compute_properties
This commit is contained in:
parent
fbcef936a9
commit
ef8dcb2a43
Notes:
github-actions[bot]
2025-11-02 22:55:03 +00:00
Author: https://github.com/Calme1709
Commit: ef8dcb2a43
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/6642
Reviewed-by: https://github.com/AtkinsSJ ✅
1 changed files with 0 additions and 11 deletions
|
|
@ -2568,17 +2568,6 @@ GC::Ref<ComputedProperties> StyleComputer::compute_properties(DOM::AbstractEleme
|
||||||
// 5. Add or modify CSS-defined animations
|
// 5. Add or modify CSS-defined animations
|
||||||
process_animation_definitions(computed_style, abstract_element);
|
process_animation_definitions(computed_style, abstract_element);
|
||||||
|
|
||||||
// FIXME: Support multiple entries for `animation` properties
|
|
||||||
// Animation declarations [css-animations-2]
|
|
||||||
auto animation_name = [&]() -> Optional<String> {
|
|
||||||
auto const& animation_name = computed_style->property(PropertyID::AnimationName);
|
|
||||||
if (animation_name.is_keyword() && animation_name.to_keyword() == Keyword::None)
|
|
||||||
return OptionalNone {};
|
|
||||||
if (animation_name.is_string())
|
|
||||||
return animation_name.as_string().string_value().to_string();
|
|
||||||
return animation_name.to_string(SerializationMode::Normal);
|
|
||||||
}();
|
|
||||||
|
|
||||||
auto animations = abstract_element.element().get_animations_internal(Animations::GetAnimationsOptions { .subtree = false });
|
auto animations = abstract_element.element().get_animations_internal(Animations::GetAnimationsOptions { .subtree = false });
|
||||||
if (animations.is_exception()) {
|
if (animations.is_exception()) {
|
||||||
dbgln("Error getting animations for element {}", abstract_element.debug_description());
|
dbgln("Error getting animations for element {}", abstract_element.debug_description());
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue