aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/rtcdatachannelevent.rs
diff options
context:
space:
mode:
authorFernando Jiménez Moreno <ferjmoreno@gmail.com>2020-06-02 10:52:34 +0200
committerFernando Jiménez Moreno <ferjmoreno@gmail.com>2020-06-29 16:53:48 +0200
commit960b010d300503befa9c4469d0ee055908dba923 (patch)
treecd11aac33145d0b59b0e95a5407212422874918c /components/script/dom/rtcdatachannelevent.rs
parentace0d7795ec3e9ad1bdadfd1894aacbd0d3676d8 (diff)
downloadservo-960b010d300503befa9c4469d0ee055908dba923.tar.gz
servo-960b010d300503befa9c4469d0ee055908dba923.zip
Cleanups and tidy fixes
Diffstat (limited to 'components/script/dom/rtcdatachannelevent.rs')
-rw-r--r--components/script/dom/rtcdatachannelevent.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/components/script/dom/rtcdatachannelevent.rs b/components/script/dom/rtcdatachannelevent.rs
index cd5239eff79..95935f68107 100644
--- a/components/script/dom/rtcdatachannelevent.rs
+++ b/components/script/dom/rtcdatachannelevent.rs
@@ -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()
}