mirror of
https://github.com/fergalmoran/ladybird.git
synced 2025-12-25 10:48:41 +00:00
LibWeb: Support animated backgrounds
This commit is contained in:
committed by
Andrew Kaster
parent
bfdb30c74a
commit
6ff9a88c3b
@@ -55,6 +55,11 @@ void HTMLBodyElement::parse_attribute(FlyString const& name, String const& value
|
||||
document().set_visited_link_color(color.value());
|
||||
} else if (name.equals_ignoring_case("background"sv)) {
|
||||
m_background_style_value = CSS::ImageStyleValue::create(document().parse_url(value));
|
||||
m_background_style_value->on_animate = [this] {
|
||||
if (layout_node()) {
|
||||
layout_node()->set_needs_display();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
#undef __ENUMERATE
|
||||
|
||||
Reference in New Issue
Block a user