1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 15:28:11 +00:00

LibWeb: Add Event.timeStamp

Note that the value is always 0 for now. Actually initializing the time
stamp is left as a FIXME.
This commit is contained in:
Andreas Kling 2021-10-11 18:17:23 +02:00
parent f952db1a1f
commit f188e48c3c
3 changed files with 13 additions and 0 deletions

View file

@ -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;
}
}