Cleanups and tidy fixes

This commit is contained in:
Fernando Jiménez Moreno 2020-06-02 10:52:34 +02:00
parent ace0d7795e
commit 960b010d30
8 changed files with 23 additions and 24 deletions

View file

@ -62,10 +62,12 @@ impl RTCErrorEvent {
}
impl RTCErrorEventMethods for RTCErrorEvent {
// https://www.w3.org/TR/webrtc/#dom-rtcerrorevent-error
fn Error(&self) -> DomRoot<RTCError> {
DomRoot::from_ref(&*self.error)
}
// https://dom.spec.whatwg.org/#dom-event-istrusted
fn IsTrusted(&self) -> bool {
self.event.IsTrusted()
}