diff options
Diffstat (limited to 'components/script')
-rw-r--r-- | components/script/dom/document.rs | 5 | ||||
-rw-r--r-- | components/script/dom/webidls/Document.webidl | 4 |
2 files changed, 7 insertions, 2 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, diff --git a/components/script/dom/webidls/Document.webidl b/components/script/dom/webidls/Document.webidl index 10199205537..ba76e60e8de 100644 --- a/components/script/dom/webidls/Document.webidl +++ b/components/script/dom/webidls/Document.webidl @@ -176,6 +176,6 @@ partial interface Document { double pageY, double screenX, double screenY); - // FIXME (#8159): - // TouchList createTouchList(Touch... touches); + + TouchList createTouchList(Touch... touches); }; |