Truly independent web browser
LibWeb: Hold the elements of an AnimationUpdateContext conservatively
Shannon Booth4101c5c08bdc
diff --git a/Libraries/LibWeb/Animations/AnimationEffect.h b/Libraries/LibWeb/Animations/AnimationEffect.hindex a33bcbe2e49..b4547d02c3f 100644--- a/Libraries/LibWeb/Animations/AnimationEffect.h+++ b/Libraries/LibWeb/Animations/AnimationEffect.h@@ -10,6 +10,7 @@#include <AK/Optional.h>#include <AK/Utf16String.h>#include <AK/Variant.h>+#include <LibGC/ConservativeHashMap.h>#include <LibGC/ConservativeVector.h>#include <LibWeb/Animations/TimeValue.h>#include <LibWeb/Bindings/AnimationEffect.h>@@ -64,7 +65,7 @@ struct AnimationUpdateContext {void publish();// NOTE: This is lazily populated by KeyframeEffects as their respective animations are applied to an element.- HashMap<DOM::AbstractElement, ElementData> elements;+ GC::ConservativeHashMap<DOM::AbstractElement, ElementData> elements;};// https://www.w3.org/TR/web-animations-1/#the-animationeffect-interface