From dd1fd5fe47e115770eba791f5d5129e012e3d143 Mon Sep 17 00:00:00 2001 From: Matthew Olsson Date: Sat, 3 Feb 2024 12:10:21 -0700 Subject: [PATCH] LibWeb: Add Animatable interface to Element --- Userland/Libraries/LibWeb/DOM/Element.h | 4 +++- Userland/Libraries/LibWeb/DOM/Element.idl | 3 +++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibWeb/DOM/Element.h b/Userland/Libraries/LibWeb/DOM/Element.h index 6a0e1b7ccc..d1b62b5003 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.h +++ b/Userland/Libraries/LibWeb/DOM/Element.h @@ -7,6 +7,7 @@ #pragma once #include +#include #include #include #include @@ -67,7 +68,8 @@ class Element , public ChildNode , public NonDocumentTypeChildNode , public SlottableMixin - , public ARIA::ARIAMixin { + , public ARIA::ARIAMixin + , public Animations::Animatable { WEB_PLATFORM_OBJECT(Element, ParentNode); public: diff --git a/Userland/Libraries/LibWeb/DOM/Element.idl b/Userland/Libraries/LibWeb/DOM/Element.idl index 87dec411fb..390a04e977 100644 --- a/Userland/Libraries/LibWeb/DOM/Element.idl +++ b/Userland/Libraries/LibWeb/DOM/Element.idl @@ -1,3 +1,4 @@ +#import #import #import #import @@ -105,3 +106,5 @@ Element includes InnerHTML; // https://www.w3.org/TR/wai-aria-1.2/#idl_element Element includes ARIAMixin; Element includes Slottable; +// https://www.w3.org/TR/web-animations-1/#extensions-to-the-element-interface +Element includes Animatable;