mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Cleanups and tidy fixes
This commit is contained in:
parent
ace0d7795e
commit
960b010d30
8 changed files with 23 additions and 24 deletions
|
@ -48,6 +48,7 @@ impl RTCDataChannelEvent {
|
|||
event
|
||||
}
|
||||
|
||||
#[allow(non_snake_case)]
|
||||
pub fn Constructor(
|
||||
window: &Window,
|
||||
type_: DOMString,
|
||||
|
@ -64,10 +65,12 @@ impl RTCDataChannelEvent {
|
|||
}
|
||||
|
||||
impl RTCDataChannelEventMethods for RTCDataChannelEvent {
|
||||
// https://www.w3.org/TR/webrtc/#dom-datachannelevent-channel
|
||||
fn Channel(&self) -> DomRoot<RTCDataChannel> {
|
||||
DomRoot::from_ref(&*self.channel)
|
||||
}
|
||||
|
||||
// https://dom.spec.whatwg.org/#dom-event-istrusted
|
||||
fn IsTrusted(&self) -> bool {
|
||||
self.event.IsTrusted()
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue