1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:57:43 +00:00

LibWeb: Implement Event.composedPath

I originally implemented this as something to use the new sequence
wrapper, however, after having a look at uses with grep.app, it's used
often, for example:
- Bootstrap 5 Dropdowns
- Polymer
- Angular
- Closure
This commit is contained in:
Luke Wilde 2021-10-16 05:25:53 +01:00 committed by Idan Horowitz
parent cb821e1539
commit 126d6d0838
3 changed files with 119 additions and 0 deletions

View file

@ -146,6 +146,8 @@ public:
void set_time_stamp(double time_stamp) { m_time_stamp = time_stamp; }
NonnullRefPtrVector<EventTarget> composed_path() const;
protected:
explicit Event(FlyString const& type)
: m_type(type)