diff options
author | Andreas Kling <kling@serenityos.org> | 2021-10-11 18:17:23 +0200 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2021-10-11 18:20:46 +0200 |
commit | f188e48c3c3c64ae8c63ec6f07d2c7297857e2b6 (patch) | |
tree | f031b87f07219e234de71097d45fed8c4f3a0d19 /Userland/Libraries/LibWeb/DOM/Event.cpp | |
parent | f952db1a1f67865fecf3c351ff70c80e7871a74b (diff) | |
download | serenity-f188e48c3c3c64ae8c63ec6f07d2c7297857e2b6.zip |
LibWeb: Add Event.timeStamp
Note that the value is always 0 for now. Actually initializing the time
stamp is left as a FIXME.
Diffstat (limited to 'Userland/Libraries/LibWeb/DOM/Event.cpp')
-rw-r--r-- | Userland/Libraries/LibWeb/DOM/Event.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/DOM/Event.cpp b/Userland/Libraries/LibWeb/DOM/Event.cpp index c1704ec0b9..ef7f358391 100644 --- a/Userland/Libraries/LibWeb/DOM/Event.cpp +++ b/Userland/Libraries/LibWeb/DOM/Event.cpp @@ -58,4 +58,10 @@ void Event::init_event(const String& type, bool bubbles, bool cancelable) initialize(type, bubbles, cancelable); } +// https://dom.spec.whatwg.org/#dom-event-timestamp +double Event::time_stamp() const +{ + return m_time_stamp; +} + } |