mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-01 07:07:49 +00:00
LibWeb: Update DOM IDL specs
I noticed some of these were running behind the upstream spec.
This commit is contained in:
parent
c79f261bec
commit
d5fd29adb7
Notes:
github-actions[bot]
2024-10-14 16:00:25 +00:00
Author: https://github.com/gmta
Commit: d5fd29adb7
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1784
Reviewed-by: https://github.com/tcl3
Reviewed-by: https://github.com/trflynn89
18 changed files with 33 additions and 52 deletions
|
@ -9,6 +9,7 @@
|
|||
#include <AK/FlyString.h>
|
||||
#include <LibWeb/Bindings/PlatformObject.h>
|
||||
#include <LibWeb/DOM/EventTarget.h>
|
||||
#include <LibWeb/HighResolutionTime/DOMHighResTimeStamp.h>
|
||||
|
||||
namespace Web::DOM {
|
||||
|
||||
|
@ -54,7 +55,8 @@ public:
|
|||
|
||||
virtual ~Event() = default;
|
||||
|
||||
double time_stamp() const;
|
||||
// https://dom.spec.whatwg.org/#dom-event-timestamp
|
||||
HighResolutionTime::DOMHighResTimeStamp time_stamp() const { return m_time_stamp; }
|
||||
|
||||
FlyString const& type() const { return m_type; }
|
||||
void set_type(FlyString const& type) { m_type = type; }
|
||||
|
@ -180,7 +182,7 @@ private:
|
|||
Path m_path;
|
||||
TouchTargetList m_touch_target_list;
|
||||
|
||||
double m_time_stamp { 0 };
|
||||
HighResolutionTime::DOMHighResTimeStamp m_time_stamp { 0 };
|
||||
|
||||
void set_cancelled_flag();
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue