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:
parent
f952db1a1f
commit
f188e48c3c
3 changed files with 13 additions and 0 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue