mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-21 12:05:15 +00:00
LibWeb: Skip keyframe animation update if target element isn't connected
Makes some pages on Github faster as previously we had to update animation for elements in not connected shadow trees.
This commit is contained in:
parent
de062e4d2c
commit
d8b0b1535b
Notes:
github-actions[bot]
2025-01-10 14:42:30 +00:00
Author: https://github.com/kalenikaliaksandr Commit: https://github.com/LadybirdBrowser/ladybird/commit/d8b0b1535b7 Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3214
1 changed files with 1 additions and 1 deletions
|
@ -918,7 +918,7 @@ static CSS::RequiredInvalidationAfterStyleChange compute_required_invalidation(H
|
|||
void KeyframeEffect::update_computed_properties()
|
||||
{
|
||||
auto target = this->target();
|
||||
if (!target)
|
||||
if (!target || !target->is_connected())
|
||||
return;
|
||||
|
||||
GC::Ptr<CSS::ComputedProperties> style = {};
|
||||
|
|
Loading…
Add table
Reference in a new issue