mirror of
https://github.com/servo/servo.git
synced 2025-08-05 05:30:08 +01:00
Auto merge of #9025 - k-cross:master, r=nox
touchlist dom api #8225 Sorry for the wait, I just finished my finals. Fixes #8225 <!-- Reviewable:start --> [<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/9025) <!-- Reviewable:end -->
This commit is contained in:
commit
5b91daa923
3 changed files with 7 additions and 13 deletions
|
@ -1993,6 +1993,11 @@ impl DocumentMethods for Document {
|
||||||
pageY)
|
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
|
// https://dom.spec.whatwg.org/#dom-document-createtreewalker
|
||||||
fn CreateTreeWalker(&self,
|
fn CreateTreeWalker(&self,
|
||||||
root: &Node,
|
root: &Node,
|
||||||
|
|
|
@ -176,6 +176,6 @@ partial interface Document {
|
||||||
double pageY,
|
double pageY,
|
||||||
double screenX,
|
double screenX,
|
||||||
double screenY);
|
double screenY);
|
||||||
// FIXME (#8159):
|
|
||||||
// TouchList createTouchList(Touch... touches);
|
TouchList createTouchList(Touch... touches);
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
[create-touch-touchlist.html]
|
|
||||||
type: testharness
|
|
||||||
[document.createTouchList exists and correctly creates a TouchList from zero Touch objects]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[document.createTouchList exists and correctly creates a TouchList from a single Touch]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
||||||
[document.createTouchList exists and correctly creates a TouchList from two Touch objects]
|
|
||||||
expected: FAIL
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue