aboutsummaryrefslogtreecommitdiffstats
path: root/components/script/dom/document.rs
diff options
context:
space:
mode:
Diffstat (limited to 'components/script/dom/document.rs')
-rw-r--r--components/script/dom/document.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/components/script/dom/document.rs b/components/script/dom/document.rs
index d682188c461..79b3dd41f85 100644
--- a/components/script/dom/document.rs
+++ b/components/script/dom/document.rs
@@ -1993,6 +1993,11 @@ impl DocumentMethods for Document {
pageY)
}
+ // https://w3c.github.io/touch-events/#idl-def-document-createtouchlist(touch...)
+ fn CreateTouchList(&self, touches: &[&Touch]) -> Root<TouchList> {
+ TouchList::new(&self.window, &touches)
+ }
+
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
fn CreateTreeWalker(&self,
root: &Node,